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.
This commit is contained in:
Lucas Galfasó 2013-05-24 21:18:51 -03:00 committed by Misko Hevery
parent b3777f275c
commit 000012f319

View file

@ -2244,7 +2244,7 @@ describe('$compile', function() {
});
iit('should support controllerAs', function() {
it('should support controllerAs', function() {
module(function() {
directive('main', function() {
return {