1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| var app = angular.module('sentinelDashboardApp');
|
| app.filter('range', [function () {
| return function (input, length) {
| if (isNaN(length) || length <= 0) {
| return [];
| }
|
| input = [];
| for (var index = 1; index <= length; index++) {
| input.push(index);
| }
|
| return input;
| };
|
| }]);
|
|