When a post is created by a user, they are able to choose from a list of potential recipients for the post. After creation, users can go back and edit the post. Now, I am faced with managing two sets of data: one containing all potential recipients and the other containing the recipients selected when the post was originally created.
My dilemma is this: How can I ensure that when editing a post, all potential recipients are available as options but the original recipients are already pre-selected?
<ion-select [(ngModel)]="post.To" [ngModelOptions]="{standalone: true}" multiple="true" cancelText="Cancel" okText="OK">
<ion-option *ngFor="let member of members.PotentialPeople" [value]="member">
{{ member.Name }}
</ion-option>
</ion-select>