当切换按钮为“on”时,请参见下面的函数buttonOn()
被调用,
我想在buttonOff()
“关闭”时拨打电话,如下所示
.html
<ion-toggle (ionChange)="buttonOn()"></ion-toggle>
.ts
buttonOn() {
// this function is called;
}
buttonOff() {
// how to call this function when toggle button gets off?
}