I want to set selected but I tried this below it's not work How to set selected ngfor ionic2 I tried
<ion-item> <ion-label>Source</ion-label> <ion-select [(ngModel)]="filter" > <ion-option value={{item.val}} *ngFor="let item of options" selected="item.val == 'pencil'">{{item.name}}</ion-option> </ion-select> </ion-item> it's not work ,not show selected this to default
ts
public options = [ { "name": "Pencils", "val" : "pencil" } . . . ];
options?