ben-hunter-hansen / angular-async-await

angular view model support for async/await syntax
MIT License
19 stars 7 forks source link

update README.md #5

Open cztomsik opened 8 years ago

cztomsik commented 8 years ago

Pretty please :) it took me too long to figure this out:

At least in Angular 1.5 (with webpack+babel+babel-polyfill) all you need is this:

// regenerator vs. $digest
angular.module('whatever').run(($q) => {
  window.Promise = $q;
});

You might also consider updating your article which is top hit on "angular async await"