Skip to content

Commit

Permalink
fix($compile): bind all directive controllers correctly when using `b…
Browse files Browse the repository at this point in the history
…indToController`

Previously only the first directive's controller would be bound correctly.

Closes angular#11343
Closes angular#11345
  • Loading branch information
petebacondarwin committed Nov 10, 2015
1 parent 50557a6 commit bd7b217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ng/compileSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4482,7 +4482,7 @@ describe('$compile', function() {
'str': '@fooStr',
'fn': '&fooFn'
},
scope: true,
scope: {},
controllerAs: 'fooCtrl',
controller: function() {
expect(this.data).toEqualData({'foo': 'bar', 'baz': 'biz'});
Expand Down

0 comments on commit bd7b217

Please sign in to comment.