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

Select item in ionic 2

$
0
0

@healer12 i think you are doing it wrong.You have to loop the ion-option.
*ngFor inside ion-option tag

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

Viewing all articles
Browse latest Browse all 229110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>