I am using the <md-checkbox> with the 'indeterminate' attribute provided by Angular Material to update an array based on the checkboxes selected. However, the Array is only updated based on ng-click, not on ng-change. Therefore, checking the "Select All" item, will not insert the values into the array.
Consider this codepen.
How can I update the addData function based on ng-change?
Aucun commentaire:
Enregistrer un commentaire