diff options
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js index 61bb6139..e9b678f8 100644 --- a/src/directives.js +++ b/src/directives.js @@ -160,12 +160,12 @@ angularDirective("ng:init", function(expression){ */ angularDirective("ng:controller", function(expression) { this.scope(true); - return ['$injector', '$window', function($injector, $window) { + return ['$controller', '$window', function($controller, $window) { var scope = this, Controller = getter(scope, expression, true) || getter($window, expression, true); assertArgFn(Controller, expression); - $injector.instantiate(Controller, {$scope: scope}); + $controller(Controller, scope); }]; }); |
