What is the best way to bind drop downs values with numbers from 1 to 100 using a loop using Angular2?
For a limited number of values I am using Ngprime dropdown, but how do I achieve this for 'n' number of values?
Template:
<p-dropdown [options]="tests" [(ngModel)]="selectedCar" [style]="{'width':'150px'}" editable="editable" placeholder="Select a Brand"></p-dropdown>
Component:
this.tests = [];
this.test.push({label: 'Audi', value: 'Audi'});
Can anyone guide me?