I am just trying to populate values in a mat-select.
<mat-select id="selproj" class="proj-selector" >
<mat-option *ngFor="let project of projects " [value]="project.projId">
{{project.projName}}
</mat-option>
</mat-select>
The project array is something like this
0: {projStatus: "Y", projName: "Test-1", projtId: 3}
1: {projStatus: "N", projName: "Test-2", projId: 9}
Now what I am looking to do is if the projstatus is no , I have to show mat-option value in the select box as projname-notactive. But if the project status is Y, I should show only the project name. I cannot use both ngif and ngfor together in mat-option. How can I acheive this?