changed category view method
This commit is contained in:
parent
87d6e51842
commit
3b2009186a
2 changed files with 4 additions and 15 deletions
|
@ -31,7 +31,6 @@ export class CategoryMonthComponent implements OnInit {
|
|||
weekEssential3: number = 0;
|
||||
weekEssential4: number = 0;
|
||||
|
||||
categoryList: any;
|
||||
dayList: any[] = [];
|
||||
valueList: number[] = [];
|
||||
myWeek1: any;
|
||||
|
@ -47,16 +46,6 @@ export class CategoryMonthComponent implements OnInit {
|
|||
private api: ApiService,
|
||||
) {
|
||||
this.setDate();
|
||||
this.api.categoryList().subscribe(
|
||||
result => {
|
||||
this.categoryList = result.categories;
|
||||
console.log('Category List received');
|
||||
},
|
||||
error => {
|
||||
console.log('Retrieval Error');
|
||||
console.log( error._body );
|
||||
}
|
||||
);
|
||||
this.api.categoryTransactionList().subscribe(
|
||||
result => {
|
||||
this.setData(result);
|
||||
|
|
Reference in a new issue