I have the below HTML in Angular
<span *ngIf="ControllerType?.AttributeID =='Controller Type'">
<select multiple name="ControllerType.Default" [(ngModel)]="ControllerType1">
<option *ngFor="let z of ControllerType.Options" value={{z.OptionID}}>
{{z.OptionID}}
</option>
</select>
</span>
What I want to know is how can I set ControllerType.Default which is of type string to get the values selected in ControllerType1. So whatever values were selected and stored in ControllerType1 should also be stored in ControllerType.Default
Doing this {{ControllerType.Default=ControllerType1;""}} after the Select tag and inside the iteration just errors out.