JSFiddle - React, Tailwind, and code Playground

by sqren

HTML

<div ng-app='myApp' ng-controller="Main">
    <li ng-repeat="n in range(5,15)">test {{n}}</li>
</div>

JavaScript

var myApp = angular.module('myApp', []);
function Main($scope){
  $scope.range = function(min, max, step){
    step = step || 1;
    var input = [];
    for (var i = min; i <= max; i += step) input.push(i);
    return input;
  };
};