I have an array of numbers $scope.N = [1,2,3,4]. I want to loop through this array in my HTML code using ng-repeat, similar to the example with JSON ng-repeat.
<div ng-repeat="num in N">
{{num}}
</div>
How can I achieve this with an array of numbers?