I’m running an ionic app from example code from Don Coleman and am attempting to change the toggle button:
<ion-toggle [(ngModel)]="power" (ionChange)="onPowerSwitchChange($event);"></ion-toggle>
into a regular button such as:
<ion-item><button (click)="powerclickon()">ON</button></ion-item>
<ion-item><button (click)="powerclickoff()">OFF</button></ion-item>
Eventually I would like to implement a touchstart touchend event for the button to cause it turn on when pushed and off when released.