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 authored and gkalpak committed Nov 23, 2015
1 parent d8d955c commit c0d3c33
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 c0d3c33

Please sign in to comment.