I am trying to bind Angular drop-down (Angular 2+) with 19000+ records, it's hanging application, we are unable to perform any other operation post that.
I am just using *ngFor
, for same
<select class="form-control" name="occupation"
[(ngModel)]="model.occupation" #occupation="ngModel" required
(ngModelChange)="onChange($event)">
<option *ngFor="let c of ocupencycollection;">
{{ c }}
</option>
</select>
Any other feasible solution?
Copyright Notice:Content Author:「Bharat Joshi」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46783753/binding-dropdown-with-large-dataset-angular-2