Skip to content

Commit c0d3c33

Browse files
petebacondarwingkalpak
authored andcommitted
fix($compile): bind all directive controllers correctly when using bindToController
Previously only the first directive's controller would be bound correctly. Closes angular#11343 Closes angular#11345
1 parent d8d955c commit c0d3c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ng/compileSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4482,7 +4482,7 @@ describe('$compile', function() {
44824482
'str': '@fooStr',
44834483
'fn': '&fooFn'
44844484
},
4485-
scope: true,
4485+
scope: {},
44864486
controllerAs: 'fooCtrl',
44874487
controller: function() {
44884488
expect(this.data).toEqualData({'foo': 'bar', 'baz': 'biz'});

0 commit comments

Comments
 (0)