Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49296

Best practice for getting data from async methods

$
0
0

@eavenue wrote:

Hello everyone,

I would like to ask you the best practice for getting data asynchronously and using them in other methods. For example, i would like to retrieve 3 values from local storage and use them in an http get request upon retrieving all the values. I have tried using promise.all but i would like your opinion as well. Another example is getting the user's current location before calling a method that calculates the user's distance to some POIs on the map. Any code examples are very appreciated :slight_smile:

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49296

Trending Articles



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