Retrieving Data From Object Not Working in Ionic Retrieving Data From Object Not Working in Ionic sql sql

Retrieving Data From Object Not Working in Ionic


You can get the results by querying the rows.item method with the corresponding index if multiple results were returned.

var elements = [];for (var i = 0; i < result.rows.length; i++) {    elements.push(result.rows.item(i));}return elements;

Where result is the object returned by $cordovaSQL when its promise is complete.


Did you try to instantiate a webSQL instead of SQLite DB for your browser?

You can always just go back to SQLite for your device, but modern browsers like Chrome and Firefox don't support SQLite.