Change device/folder getAll to getEach
This commit is contained in:
@@ -4,7 +4,7 @@ import { ChartComponent } from './chart.component';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
|
||||
class MockService {
|
||||
getAll() {
|
||||
getEach() {
|
||||
// unimplemented
|
||||
}
|
||||
};
|
||||
|
||||
@@ -72,7 +72,7 @@ export class ChartComponent implements OnInit {
|
||||
|
||||
ngAfterViewInit() {
|
||||
let totalCount: number = 0;
|
||||
this.service.getAll().subscribe(
|
||||
this.service.getEach().subscribe(
|
||||
t => {
|
||||
// Count the number of folders and set chart
|
||||
totalCount++;
|
||||
|
||||
Reference in New Issue
Block a user