I was just going through this example online of $watch in angular and basically came across this weird syntax below:
<select ng-model="countSelection" ng-options="n for n in [5,10,15,20]"></select>
Now i am familiar with the for ..in loop, in native javascript , but what the heck is ng-options="n for n in [5,10,15,20]" ? can anybody explain this ? I have seen the documentation HERE , there are a few similar examples , but nothing quite the same, and i quite puzzled by that syntax, can anybody explain ?
Thank you.