New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ng-decorator

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-decorator

Angular module decorator, backported from 1.4

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

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.

Keywords

angular

FAQs

Package last updated on 30 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts