0
I have the following code for ion-select:
<ion-item class="drop-categoria" style="margin-bottom: 5%; ">
<ion-label>Categorias</ion-label>
<ion-select [(ngModel)]="catselected" (ng-change)="onChange(catselected)">
<ion-option *ngFor="let cat of categorias" [value]="cat.nome" >{{ cat.nome }}</ion-option>
</ion-select>
</ion-item>
And no . ts:
onChange(catselected){
console.log(catselected);
}
I need to get the selected amount in case the cat.nome
, but when I click OK, nothing occurs, no error, and no response, which may be?
this way worked very well here for me, thank you!
– Emilio Dami Silva