i got an issue with ion toggle.
i just want, if a validation is false, so toggle get back to false, until validation is true.
here is my code
.html
.ts
i don’t know if im doing an stupid question or what.
i got an issue with ion toggle.
i just want, if a validation is false, so toggle get back to false, until validation is true.
here is my code
.html
.ts
i don’t know if im doing an stupid question or what.
Try change (ngModelChange)=“toggleClick()”
(ionChange)="toggleClick()"
(ionChange) enters in a infinite loop
Just let the ng model and make the validation in other funtion, probably the function that returns your api response.