on-internet
← Community

how to set value dynamically default value in ion-select-option

Stack Overflow ·

I'm using Ionic 4. I want to show a default value in ion-select-option. Option's values come from the server. API works all values show but on click of ion-select. But I want to show the default value. I have already initialized userData.business_type in the constructor. I have updated my question you can see that. when my page load no value shown in ion-select only drop-down button show but when I click on the drop-down button then value shown. But I want to show the first value by default when page visible to the user. Response {"success":1,"service_details":[{"id":"1","name":"Job\/Service",

Comments

Sign in or sign up to comment and upvote.

No comments yet.