I have the following angularjs app html file:
<button class="btn btn-default pull-right" ng-click="open(subcategory)">Add Course <span class="glyphicon glyphicon-plus"></span></button>
I would like to know if we can disable the Add course
button whenever the condition required credits == completed credits
is met. The controller is a regular json file with all the parameters in the subcategories.
Please help!
Use the ng-disabled directive
<button class="btn btn-default pull-right" ng-disabled="subcategory.required2 == subcategory.completed2" ng-click="open(subcategory)">Add Course <span class="glyphicon glyphicon-plus"></span></button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With