This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
FoodLoop-Web/src/app/dashboard/category-month.component.ts

41 lines
851 B
TypeScript
Raw Normal View History

import { Directive, Component, OnInit } from '@angular/core';
import { ApiService } from '../providers/api-service';
import { DataType } from '../shared/data-types.enum';
@Component({
templateUrl: 'category-month.component.html'
})
export class CategoryMonthComponent implements OnInit {
disableCategoryButtonFirst: boolean = false;
weekPurchaseList = {
first: 0,
};
categoryList: number[] = [];
categoryLimitFirst: number = 10;
constructor(
private api: ApiService,
) {
this.api.categoryTransactionList().subscribe(
result => {
console.log(result);
},
error => {
console.log('Retrieval Error');
console.log( error._body );
}
);
}
public loadMore () {
this.disableCategoryButtonFirst = true;
this.categoryLimitFirst = 100;
}
ngOnInit(): void {
}
}