Showing posts with label promises. Show all posts
Showing posts with label promises. Show all posts
Sunday, May 17, 2015
Monday, April 6, 2015
Decorators in AngularJS, $provide.decorator
$provide.decorator if defined in config section of the application code and modifies original object which is passed as $delegate argument into decorator.
Here is set of examples giving better view on a powerful feature of decorators, available in AngularJS:
Here is set of examples giving better view on a powerful feature of decorators, available in AngularJS:
- adding a custom method to 3rd party service, by tamakisquare - http://plnkr.co/edit/lj9srM2KXZmwmTxLb1p7?p=preview
- logging time while the async call is performed, using Promise.always - by K. Scott Allen http://odetocode.com/blogs/scott/archive/2013/06/06/decorating-angularjs-services.aspx
- creating more detailed response description, https://egghead.io/lessons/angularjs-provide-decorator
- adding custom method reload method to $state provider - stackoverflow.com/a/23198743/405623
Subscribe to:
Posts (Atom)
