Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

What is the equivalent of "resolve" in ionic 2?

$
0
0

Actually only the first get1 is the one that needs to be a promise, the other get# functions would be able to just return a value if they didn't have an async operation, but as timeout is a function itself you did a good use of the promise here.

Btw can you test the Rxjs approach? i'm not so sure of that one, i just looked to the docs, i'm a noob with Rxjs.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>