So when I use the above (ion-label + ion-toggle) together it looks simple like this:
HTML:
<ion-item>
<ion-label (click)="toggleMulti()">Allow multiple answer attempts</ion-label>
<ion-toggle [(ngModel)]="settings.allowMultiTries"></ion-toggle>
</ion-item>
TS:
private settings: any = {};
toggleMulti() {
this.settings.allowMultiTries = !this.settings.allowMultiTries;
}
Is it correct that there is no way of getting a click on ion-label to auto foward the click to the toggle, but I’ve to write these forward methods every time?