akveo / akveo/ng2-smart-table

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

Abierto
#1,161 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
1.6k
Forks
867
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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();

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.