<ion-card *ngFor="let n of news">
...
</ion-card>
this.storage.query("SELECT * FROM news ORDER BY created DESC LIMIT 15").then(
(response) => {if(response.res.rows.length > 0){
for(let i = 0; i < response.res.rows.length; i++){
this.news.push(response.res.rows[i]);
}
}
}
);Maybe more informations for understanding:I fetch data from web page, store it in sql storage and get the data with the above js-part from sql storage. Maybe anyone knows a better solution...