After executing a select query against the database, I am able to read the results from the logcat and view the data there. However, I am encountering an issue where the data is not rendering in the HTML view after binding.
//data retrieve section
db.executeSql('select * from users', {}).then((data) => {
this.items = [];
if(data.rows.length > 0) {
for(var i = 0; i < data.rows.length; i++) {
this.items.push({name: data.rows.item(i)});
}
}
}
HTML
<ion-item href="#" *ngFor="let x of items" >
{{x.fname}}
</ion-item>