What is the best way to create a selection list using three different models? Here is my approach:
HTML:
<ng-container [(ngModel)]='user.id' name="id" >
<select *ngFor="let userRole of userRoles" required>
<option *ngFor="let role of roles" [ngValue]="role.role_id">
{{role.name}}
</option>
</select>
</ng-container>
However, I am encountering an issue where I get a duplicate of the "select" component. This error message pops up:
ERROR Error: Uncaught (in promise): Error: No value accessor for form control with name: 'id' Error: No value accessor for form control with name: 'id'