code: function internalAction(scope, page) {
                  page = page.valueOf();
                  // Block clicks we try to load the active page
                  if (scope.page == page) {
                      return;
                  }
  
                  // Update the page in scope and fire any paging actions
                  scope.page = page;
                  scope.paginationAction({
                      page: page
                  });
  
                  // If allowed scroll up to the top of the page
                  if (scope.scrollTop) {
                      scrollTo(0, 0);
                  }
              }
docs: Internal Pagination Click Action