akveo / akveo/ng2-smart-table

Problems with pagination getting data with http

未关闭
#228 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

I have a problem using the pagination in my table. This is my code:

```
ngOnInit() {
this.representativesS.getRepresentatives()
.subscribe(
data => {
this.representatives = data;
this.representativesSource = new LocalDataSource(this.representatives);
},
error => {
console.log(error)
}
);
}
```
The function `this.representativesS.getRepresentatives()` is doing a http request and returns an array with objects `this.representatives`, after that I get the data to show into the table and then it shows wrong without numbers between the arrows, like << >>. But I've tried to show the data directly with no http request (it's a static array) and the pagination works fine. So it seems there is a problem combining the http with the ng2-smart-table. Any ideas? Thanks!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。