dist/paging.js
function internalAction(scope, page) {

        // Block clicks we try to load the active page
        if (scope.page == page) {
            return;
        }

        // Block if we are forcing disabled 
        if(scope.isDisabled)
        {
            return;
        }

        // Update the page in scope
        scope.page = page;

        // Pass our parameters to the paging action
        scope.pagingAction({
            page: scope.page,
            pageSize: scope.pageSize,
            total: scope.total
        });

        // If allowed scroll up to the top of the page
        if (scope.scrollTop) {
            scrollTo(0, 0);
        }
    }
function internalAction(scope, page) {

        // Block clicks we try to load the active page
        if (scope.page == page) {
            return;
        }

        // Block if we are forcing disabled 
        if(scope.isDisabled)
        {
            return;
        }

        // Update the page in scope
        scope.page = page;

        // Pass our parameters to the paging action
        scope.pagingAction({
            page: scope.page,
            pageSize: scope.pageSize,
            total: scope.total
        });

        // If allowed scroll up to the top of the page
        if (scope.scrollTop) {
            scrollTo(0, 0);
        }
    }
function internalAction ( scope , page ) { // Block clicks we try to load the active page if ( scope . page == page ) { return ; } // Block if we are forcing disabled  if ( scope . isDisabled ) { return ; } // Update the page in scope scope . page = page ; // Pass our parameters to the paging action scope . pagingAction ( { page : scope . page , pageSize : scope . pageSize , total : scope . total } ) ; // If allowed scroll up to the top of the page if ( scope . scrollTop ) { scrollTo ( 0 , 0 ) ; } }
Assign the method action to take when a page is clicked

@param {Object} scope - The local directive scope object
@param {int} page - The current page of interest
Assign the method action to take when a page is clicked