/**
* @ngDoc module
* @name ng.module:myApp
* 
* @description
* This module is here for sample purposes
*/
angular.module('myApp', ["bw.paging"]);



/**
* @ngDoc controller
* @name ng.module:myApp
* 
* @description
* This controller is here for sample purposes
*/
angular.module('myApp').controller('sampleCtrl',['$scope', function($scope){

    // A function to do some act on paging click
    // In reality this could be calling a service which 
    // returns the items of interest from the server
    // based on the page parameter
    $scope.DoCtrlPagingAct = function(text, page, pageSize, total){
        console.log({text, page, pageSize, total});
    };

}]);

/**
 * @ngDoc module
 * @name ng.module:myApp
 *
 * @description
 * This module is here for sample purposes
 */
angular.module('myApp', ["bw.paging"]);

/**
 * @ngDoc controller
 * @name ng.module:myApp
 *
 * @description
 * This controller is here for sample purposes
 */
angular.module('myApp').controller('sampleCtrl', ['$scope', function($scope, $log) {

    // A function to do some act on paging click
    // In reality this could be calling a service which
    // returns the items of interest from the server
    // based on the page parameter
    $scope.DoCtrlPagingAct = function(text, page, pageSize, total) {
        $log.info({
            text: text,
            page: page,
            pageSize: pageSize,
            total: total
        });
    };

}]);

Change console.log to $log