Quantcast
Viewing all articles
Browse latest Browse all 229904

Ionic 2 SqlStorage transactions, how to use?

in your outcommented code --> your !this.getDB().transaction(function(tx) {" call returns a promise, but your queryAll function as no return value. you need to create a promise before, return it at the end of queryAll.

In your transaction you need to reject/resolve this promise.


Viewing all articles
Browse latest Browse all 229904

Trending Articles