One of the most important programming mantras I have is “no overlaps in responsibility”, and you have three: a banana (ngModel)
mapping, an (ngModelChange)
handler, and then a checked
attribute. Choose one, and eliminate all others.
↧
Checkbox showing previous value
↧