I have used Material approach for dropdown menu for my vendor data. There are more than 12000 i.e. 12k + data in vendor. Using mat-option, I need to use *ngFor which takes hell of time. This makes my app very slow and unresposive like hanging. What can be the efficient solutions for this? The solution may be for drop down or different other approaches.
<mat-form-field fxFlex.gt-sm>
<mat-label>Vendor</mat-label>
<mat-select formControlName="VendorId">
<mat-option *ngFor="let vendor of vendorData" [value]="vendor.VendorId">
{{ vendor.VendorName }}
</mat-option>
</mat-select>
</mat-form-field>