Open Kushmajum801435 opened 5 years ago
ngOnInit() {
let param=new DataFilter();
param.pageNumber=this.page;
param.pageSize=this.itemsPerPage;
this.dataService.GetAllData(param).subscribe(res=>{
this.data=res.data;
this.length = res.totalItems;
this.numPages=res.totalPage;
this.rows = this.data;
});
}
I'm new in angular2 and I'm trying to structure my data in a data table format. so far it worked fine for static data like when the rows are already present in the html but i need it for data coming dynamically from my backend which is not working and all are coming in one page at the same time.