code: function addRange(start, finish, scope) {
                  var i = 0;
                  for (i = start; i <= finish; i++) {
                      var item = {
                          value: $sce.trustAsHtml(i.toString()),
                          liClass: scope.page == i ? scope.activeClass : 'waves-effect',
                          action: function() {
                              internalAction(scope, this.value);
                          }
                      };
  
                      scope.List.push(item);
                  }
              }
docs: Add Range of Numbers