I wonder if there is a way in angularjs to add or remove attributes according to condition. for example, instead of writing something like this
<div ng-if="isClickable" ng-click="clicked()">This is my button</div> <div ng-if="!isClickable"> this is my button</div> I will be able to write something, maybe, like this:
<div ng-click="clicked()" ng-attrs="{'ng-click': isClickable}">
<div ng-click="isClickable && clicked()">This is my button</div>