In this example:
<div ng-hide="hideMe">
<my-directive></my-directive>
</div>
I would like the code in the controller for myDirective
, not to run when hideMe === true
.
Is there a way to do this rather than wrapping all the code of the controller in an if (!hideMe === true)
statement ?