Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

ex-machine/ng-decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Angular module decorator, backported from 1.4

Resources

License

Stars

Watchers

Forks

Packages

No packages published