JSFiddle - React, Tailwind, and code Playground
by Keammoort
HTML
<div ng-app='myApp' ng-controller="Main">
<li ng-repeat="n in range(0, 9, 3) | orderBy:identity" ng-class="{'red' : n == myvalue}">test {{n}}</li>
</div>
CSS
.red {
color: red;
}
JavaScript
var myApp = angular.module('myApp', []);
function Main($scope){
$scope.myvalue = 5;
$scope.identity = angular.identity;
$scope.range = function(min, max, step){
step = step || 1;
var input = [];
for (var i = min; i <= max; i += step) input.push(i);
input.push($scope.myvalue);
return input;
};
};