<mat-select [(ngModel)]="e1Instance" (selectionChange)="e1InstanceChanged(item)"> <mat-option *ngFor="let item of entities" value={{item.name}} >{{item.name}}</mat-option></mat-select>
Hi Community,
This is how I want to use the code...
I want to use the item variable on first line in (SELECTIONCHANGE)
If i move my ngFor above it is going to create a chaos making multiple mat-selects.
Any Suggestions
I want to use the item variable on first line in (SELECTIONCHANGE) If i move my ngFor above it is going to create a chaos making multiple mat-selects. Any Suggestions
Here is a solution that I found: