Attempting to implement angular-bootstrap pagination footer
Encountering an error
TypeError: undefined is not a function
at Object.fn (http://localhost:3000/lib/angular-bootstrap/ui-bootstrap-tpls.js:2265:5)
at Scope.$get.Scope.$digest (http://localhost:3000/lib/angular/angular.js:12650:29)
at Scope.$get.Scope.$apply (http://localhost:3000/lib/angular/angular.js:12915:24)
at done (http://localhost:3000/lib/angular/angular.js:8450:45)
at completeRequest (http://localhost:3000/lib/angular/angular.js:8664:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/lib/angular/angular.js:8603:11)angular.js:10126 (anonymous function)angular.js:7398 $getangular.js:12669 $get.Scope.$digestangular.js:12915 $get.Scope.$applyangular.js:8450 doneangular.js:8664 completeRequestangular.js:8603 xhr.onreadystatechange
Line 2265 of ui-bootstrap-tpls.js file contains "setNumPages"
$scope.$watch('totalPages', function(value) {
setNumPages($scope.$parent, value); // Readonly variable
if ( $scope.page > value ) {
$scope.selectPage(value);
} else {
ngModelCtrl.$render();
}
});
Installed angular-bootstrap via bower and added
'public/lib/angular-bootstrap/ui-bootstrap-tpls.js',
Searching for setNumPages function in angular-bootstrap repo led to
src/pagination/pagination.js
How can I ensure pagination.js is loaded in my browser? Unable to locate pagination.js in my lib. Following guidance from How to do paging in AngularJS?