You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 9, 2020. It is now read-only.
When batarang is on there's no .decorator() method in angular.module API.
Example:
angular.module( 'Demo', []);
angular.module('Demo')
.factory('greeting', function greetingFactory() {
// I return a greeting for the given name.
return function (name) {
return "Hello " + name + "." ;
}
});
angular.module('Demo')
.decorator('greeting', function greetingDecorator($delegate) {
return function() {
return $delegate(name) + ' How are you doing?';
};
});
Trying to call .decorator() gives me:
angular.module(...).decorator is not a function
ENV:
System: WIndows Server 2012 R2
Chrome: 46.0.2490.80 m
Plugin: 0.10.1
Angular: 1.4.7