akveo / akveo/ng2-smart-table

Problems with pagination getting data with http

Đang mở
#228 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
867
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.