How can I disable all the buttons inside ng-repeat? Here's my code..
<div ng-repeat="item in array"> {{item.name}}<button type="button" ng-click="save()" ng-disabled="isDisabled">Submit</button></div>
Just write ng-disabled = "true" in function where u want to disable your button
If isDisabled is a property of the items in the array use:
<div ng-repeat="item in array"> {{item.name}}<button type="button" ng-click="save()" ng-disabled="item.isDisabled">Submit</button></div>
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