From c0d3c334f14d8cc57e0ffe3d8d2be160fd37c6d9 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Tue, 10 Nov 2015 10:52:18 +0000 Subject: [PATCH] fix($compile): bind all directive controllers correctly when using `bindToController` Previously only the first directive's controller would be bound correctly. Closes #11343 Closes #11345 --- test/ng/compileSpec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index db48aa665770..ee09676bc4dd 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -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'});