getAll() , getFilteredAndSorted() & getElements() returning empty array
- 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ả
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();
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á.