yalabot / angular-foundation

http://pineconellc.github.io/angular-foundation/
Other
1.05k stars 267 forks source link

Dropdown Toggle shouldn't be isolating the scope #240

Open ProLoser opened 9 years ago

ProLoser commented 9 years ago

I can't have a dropdown and a tooltip on the same element because you're (needlessly) isolating the scope in both situations. If you're not modifying the DOM of said element, nor are you decorating the scope within, nor are you using transclusion for anything, then you shouldn't be using scope isolation, or even a child scope. If you're just reading from the scope use $attrs instead of needlessly creating more scope depth.