SyntaxFix
Write A Post
Hire A Developer
Questions
You should be binding it as [value] in the mat-option as below,
[value]
mat-option
<mat-select placeholder="Panel color" [(value)]="selected2"> <mat-option *ngFor="let option of options2" [value]="option.id"> {{ option.name }} </mat-option> </mat-select>
LIVE DEMO