0

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"
Tomislav Stankovic
  • 3,080
  • 17
  • 35
  • 42

1 Answers1

0

You can use ionChange method so you will be able to keep track of the value.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
SAT77
  • 11
  • 1
  • 1