In my component class, I have two methods, one for when a checkbox is checked, and one for when a checkbox is unchecked. how do I define this behavior in my template file? this is sort of a pseudo-code of what I expected to have functionality for, though after some time looking around the web I don't see any option like this and can't seem to understand how it should be done
<input type="checkbox" *when checked*="method1()" *when unchecked*="method2()">
how should I implement this?
Aucun commentaire:
Enregistrer un commentaire