This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I am upgrading my V3 app to V4 and struggling to get my ion-select to show the pre-selected value. Always worked in V3
Any ideas?
<ion-select
placeholder="Dialing code" title="Dialing code"
\[(ngModel)\]="user.mobilePrefix"
\[compareWith\]="compareDialingCode"
submitText="Select"
cancelText="Cancel">
<ion-select-option \[value\]="d.data().prefix" *\*ngFor*="let d of dialingCodes">{{d.data().name}} {{d.data().prefix}}</ion-select-option>
</ion-select>
compareDialingCode(o1, o2) {
console.log(o1, o2)
return o1 === o2;
}
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/ionic/comme...