ng-decorator

Angular module decorator, backported from 1.4
Homepage:
0 people use it
Author: 12109873?v=3 ex-machine
Submitted by: 2905949?v=3 bisubus

ng-decorator

Brings syntactic sugar from Angular 1.4 to previous versions. Makes legacy application optimistic and future-proof.

angular.module('app').config(['$provide', function ($provide) {

$provide.decorator('service', ['$delegate', function ($delegate) {

// ...

}]);

}]);

becomes

angular.module('app').decorator('service', ['$delegate', function ($delegate) {

// ...

}]);

Install

NPM

npm install --save ng-decorator

Bower

bower install --save ng-decorator

Usage

ng-decorator.js is loaded after angular.js and before Angular modules.

comments powered by Disqus
This page was last updated almost 2 years ago.