I have an HTML button option as the following,
<button ng-class="{'primaryButton':true}" type="button" id="modalCreateBtn" "ng-hide="false" class="btn btn-group mm-btn-save primaryButton" ng-click="addSegments()">CREATE</button>
There is no ng-disable option in the above button option. Is this possible to enable/disable button with buttonId on controller? Also, I dont want to add disable option on HTML view. Instead I want to control it via scripts. Is this possible?
ng-disabled?ng-class="{'primaryButton':true}"...primaryButtonwould always be a class applied to the button in this case and, more importantly, it is already a part of theclassattribute"ng-hide="false"ng-disabledas suggested by @Zee and @Gabriel Kohen