I have seen a lot of examples to bind array of Objects.
But, all I have is this
years = [1900,1901,1902];
and i want to bind this to the options for my select control. I have this template:
<select id="carYear" required>
<option value="">Select year</option>
<option ngFor="year in years">{{year}}</option>
</select>
But, it does not work.
I also tried ng-repeat. Any ideas what is wrong here?