From 5d8861fb2f203e8a688b6044cbd1140cd79fd049 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 509faba59467..efd0f25f7cf8 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'});