تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح Using Async and Await #1 ضمن كورس Ionic شرح قناة Paul Halliday، الفديو رقم 34 مجانى معتمد اونلاين
Learn Ionic 3 From Scratch - https://www.udemy.com/learn-ionic-3-from-scratch/?couponCodeIONIC3MAY
Support the content: https://www.patreon.com/PaulHalliday - EXCLUSIVE early access to the next video(s), as well as other benefits!
Ionic 3 - Using Async and Await
A lot of people ask me about using "async" and "await" inside of your projects. I wrote a blog post on this last month which can be found here: https://learnionic2.com/2017/03/17/escaping-callback-hell-with-async-and-await/
Essentially, we're swapping out our .then() calls for:
const result await functionName()
Code written after the await call will not be executed until the promise has resolved.
If this doesn't work in your version of TypeScript, you may have to update or target a future version of JavaScript within your tsconfig.json.
The extra epic content always comes via email first. Sign up so you're not left behind: http://eepurl.com/cBCqO9
You can also find me:
http://twitter.com/PWHSoftware
http://linkedin.com/in/paulhal