Successfully disabled ngClick
on an element when the scope variable (notInProgress
) is set to true
as shown below:
<a data-ng-click="notInProgress || $ctrl.setTab('renewal');</a>
Now, I want to include additional functions to be executed based on the same variable like this:
<a data-ng-click="notInProgress || $ctrl.setTab('grantandpublishing');
notInProgress || activeLeft = 4;">
</a>
However, attempting the above results in the following error:
Error: $parse:lval Trying to assign a value to a non l-value
Inquiry
How can I incorporate multiple functions into ngClick
that are disabled when notInProgress
evaluates to true
?