I need to check the items "Not open" in an ion-checkbox
, but the item I get from a server is item.open
. When I click on the ion-checkbox
it doesn't work correctly.
Does anyone have a solution?
ion-checkbox [(ngModel)]="!item.open"
I need to check the items "Not open" in an ion-checkbox
, but the item I get from a server is item.open
. When I click on the ion-checkbox
it doesn't work correctly.
Does anyone have a solution?
ion-checkbox [(ngModel)]="!item.open"
You can use ionChange
method so you will be able to keep track of the value.