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) {
// ...
}]);
npm install --save ng-decorator
bower install --save ng-decorator
ng-decorator.js
is loaded after angular.js
and before Angular modules.