My goal is to display filters in a dropdown after they have been selected. Currently, I have static disabled divs and a dropdown where filters can be selected.
This is the dropdown:
<mat-form-field>
<mat-label>{{ 'supplier.showFilters' | translate }}</mat-label>
<mat-select>
<mat-option *ngFor="let filter of filters">
{{filter.showValue | translate}}
</mat-option>
</mat-select>
</mat-form-field>
Here is an example of one of the filters:
<div class="col-2" *ngIf="selected">
<mat-form-field>
<mat-label>{{ 'supplier.supplierName' | translate }}</mat-label>
<input formControlName="companyName" matInput/>
</mat-form-field>
</div>