Ionic 5, Ionic Checkbox So Late Behavior
I tried to bind checked attribute value on ion-checbox but the behavior is a bit late. On my ts file I have an array variable user_id and on my checkbox list i put an action to fil
Solution 1:
Please refer to Ionic documentation on ion-checkbox
using the (click) to capture the action on a checkbox is wrong.
I suggest you use (ionChange) event to trigger your addUser() function.
With [(checked)] binding, it will create an automatic sync between your actions and the values you save.
Post a Comment for "Ionic 5, Ionic Checkbox So Late Behavior"