I'm currently working with an ion-toggle
in Ionic 2. I want it to be set as default to on, however, using the checked
attribute did not produce the desired result.
<ion-toggle [(ngModel)]="ratingModel.contact" formControlName="contact" id="contact" checked="true">Contactable</ion-toggle>
Is there a way to make a ion-toggle
default to true or on?
Appreciate any insights,