I have an array that I populate with service data coming from the database. And I also have a relationship table in the bank between user and service. I would like to mark as selected the options that the user has set in the bank as provider of that service.
Code that lists available services that 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 renders, I just need to check the option checked, how can I do that?