mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
b3777f275c
commit
000012f319
1 changed files with 1 additions and 1 deletions
|
|
@ -2244,7 +2244,7 @@ describe('$compile', function() {
|
|||
});
|
||||
|
||||
|
||||
iit('should support controllerAs', function() {
|
||||
it('should support controllerAs', function() {
|
||||
module(function() {
|
||||
directive('main', function() {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue