This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
bindToController does not bind correctly for multiple directives #11343
Closed
Description
The problem occurs when defining multiple directives on the same element. All of the directives use bindToController as an object and scope: true. Only the first directive's controller gets scope bound.
Here is a fiddle showing the bug: https://jsfiddle.net/rds5muzk/
Current console output:
first = 2
second = undefined
Expected console output:
first = 2
second = 4