xuekang
2024-05-10 edf3b7fde038fcf3e6d86b8b4b88c2ff6f9014cf
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;
  };
  
}]);