Disable ng-click on certain conditions of application for all types of element Disable ng-click on certain conditions of application for all types of element angularjs angularjs

Disable ng-click on certain conditions of application for all types of element


Do like this:

<button ng-click="!IsClickEnable||DoSomethingElse()">xyz</button>

when the value of IsClickEnable is true then the function will be called on the button click then the function 'DoSomethingElse()' will be called else it will not get called