You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
<divng-controller="NavCtrl as nav"><buttonapp-hmm>Turn Red</button><png-class="{ 'red': nav.active }"></p></div>
directive('appHmm',function(){return{link: function(scope,element,attrs){foo();bar();/* // I'd like to set `nav.active = true` here without hard-coding `nav` */}};})
Is there a way to do it currently? If not, perhaps add a way to retrieve the current scope's controller instance alias from within directives?