Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229110

Select item in ionic 2

$
0
0

hi, I have code:

<ion-item>
          <ion-label stacked>{{'City' | translate}}</ion-label>
          <ion-select [(ngModel)]="dataProvince" name="province"  *ngFor="let p of dataProvince">
            <ion-option value="{{p.provinceid}}">{{p.name}}</ion-option>
          </ion-select>
</ion-item>

but, It’s not work, I think so *ngFor = “let p of dataProvince”, Where do I put it?


Viewing all articles
Browse latest Browse all 229110

Trending Articles