We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef7ba7b commit d6984dbCopy full SHA for d6984db
src/auto/injector.js
@@ -584,6 +584,8 @@ function createInjector(modulesToLoad) {
584
var Constructor = function() {},
585
instance, returnedValue;
586
587
+ // Check if Type is annotated and use just the given function at n-1 as parameter
588
+ // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
589
Constructor.prototype = (isArray(Type) ? Type[Type.length - 1] : Type).prototype;
590
instance = new Constructor();
591
returnedValue = invoke(Type, instance, locals);
0 commit comments