I want to print 2014-2050 in angular js. I have tried to find it in google and SO and i got below
<select class="form-control" >
<option ng-repeat="n in [2014,2015,2016, .. 2050]" value="{{n}}">
{{n}}
</option>
</select>
I am currently learning angular js. I want to run a loop between a defined range? like in php if i want to run a loop between 2014-2050 the i will do this
for($i=2014;$i<=2050;$i++)
{
echo $i;
}
How can i run the above for loop in angular js. Please help me.