akveo / akveo/ng2-smart-table

getAll() , getFilteredAndSorted() & getElements() returning empty array

オープン
#1,161 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
1.6k
フォーク
867
PR マージ指標
30日以内にマージされた PR はありません

説明

This below is my code.
update12() method is called on click of a button in the same page.

update12() {
let data1 = [], data2 = [], data3 = [];
this.source.getFilteredAndSorted().then(value => {
value.forEach(element => {
data1.push(element);
})
})
this.source.getElements().then(value => {
value.forEach(element => {
data2.push(element);
})
})
this.source.getAll().then(value => {
value.forEach(element => {
data3.push(element);
})
})
}

In all the above 3 cases, the value is coming as an empty array

Outside constructor in the class i have
source: LocalDataSource = new LocalDataSource();

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。