aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Galfasó2013-05-24 21:18:51 -0300
committerMisko Hevery2013-07-31 10:31:42 -0700
commit000012f3196776bb1d4b5df802c6763e514c0fb9 (patch)
tree81800487399600e2665dd9a85d406e18d8c3422b
parentb3777f275c6bd2bd4a88963fd03828eb7cf3aca8 (diff)
downloadangular.js-000012f3196776bb1d4b5df802c6763e514c0fb9.tar.bz2
feat(directive): support as instance syntax
Support controller: 'MyController as my' syntax for directives which publishes the controller instance to the directive scope. Support controllerAs syntax to define an alias to the controller within the directive scope.
-rwxr-xr-xtest/ng/compileSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js
index c2827559..c1dedd4a 100755
--- a/test/ng/compileSpec.js
+++ b/test/ng/compileSpec.js
@@ -2244,7 +2244,7 @@ describe('$compile', function() {
});
- iit('should support controllerAs', function() {
+ it('should support controllerAs', function() {
module(function() {
directive('main', function() {
return {