How to leave one or more options preselected (ion-option)

Asked

Viewed 72 times

1

I have an array that I fill with service data from the database. And I also have a relationship table in the database between user and service. I would like to mark as selected the options that the user has set in the bank as the provider of that service.

Code listing the available services the person can provide:

<ion-option *ngFor="let service of services" value={{service.id}}>{{service.description}} </ion-option>

I already have an array with the services that the person provides, just check the checked option, how can I do this?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.