I have following code:
<ion-item *ngFor="let dispositivo of dispositivos">
<ion-label>{{dispositivo.Nome}}</ion-label>
<ion-toggle toggle-class="toggle-positive" [(ngModel)]="dispositivo.Status" data-ng-change="acao(dispositivo)"></ion-toggle>
I want to shoot
acao(dispositivo: any) {
//algo aqui
}
In this code it does not arrive at the action event.