JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app='myApp' ng-controller="Main">
<li ng-repeat="n in [] | range:5">test</li>
</div>
JavaScript
var myApp = angular.module('myApp', []);
myApp.filter('range', function() {
return function(input, total) {
total = parseInt(total);
for (var i=0; i<total; i++)
input.push(i);
return input;
};
});
function Main($scope){
}