added new category transaction listing page

This commit is contained in:
piratefinn 2018-01-17 17:36:28 +00:00
parent 739d91a444
commit b7c73d5e48
6 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,40 @@
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 {
}
}