amp-async-function
Angular async function executor ES5 friendly.
Demo
Check out here.
Usage
Install amp-async-function using npm.
npm install amp-async-
Include module amp-async-function into your app.
angular;
Guide:
- Inject the factory:
asyncFunction
; - Call your function:
asyncFunction.execute(yourFunction, [] /*array of params*/, 0 /*delay*/);
Use the factory as example below:
angular ; { var vm = this; vm { asyncFunction ; } vm { return id; } }
Support on Beerpay
Hey dude! Help me out for a couple of 🍻!