diff options
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directives.js b/src/directives.js index d2d3bf2c..425685f3 100644 --- a/src/directives.js +++ b/src/directives.js @@ -5,6 +5,7 @@ angularDirective("ng:init", function(expression){ }); angularDirective("ng:controller", function(expression){ + this.scope(true); return function(element){ var controller = getter(window, expression, true) || getter(this, expression, true); if (!controller) @@ -12,7 +13,6 @@ angularDirective("ng:controller", function(expression){ if (!isFunction(controller)) throw "Reference '"+expression+"' is not a class."; this.$become(controller); - (this.init || noop)(); }; }); |
