Lines Matching refs:scope
78 return function dirPaginationLinkFn(scope, element, attrs) { argument
83 $parse(attrs.paginationId)(scope) || attrs.paginationId || DEFAULT_ID;
99 makeCurrentPageGetterFn(scope, attrs, paginationId);
101 paginationId, currentPageGetter, scope);
105 scope.$watch(
107 return $parse(attrs.totalItems)(scope);
116 scope.$watchCollection(
118 return collectionGetter(scope);
133 compiled(scope);
232 function makeCurrentPageGetterFn(scope, attrs, paginationId) { argument
243 scope[defaultCurrentPage] = 1;
272 scope: class in dirPaginationControlsDirective.DDO
294 function dirPaginationControlsLinkFn(scope, element, attrs) { argument
301 var paginationId = scope.paginationId || attrs.paginationId || DEFAULT_ID;
314 if (!scope.maxSize) {
315 scope.maxSize = 9;
317 scope.autoHide = scope.autoHide === undefined ? true : scope.autoHide;
318 scope.directionLinks = angular.isDefined(attrs.directionLinks) ?
319 scope.$parent.$eval(attrs.directionLinks) :
321 scope.boundaryLinks = angular.isDefined(attrs.boundaryLinks) ?
322 scope.$parent.$eval(attrs.boundaryLinks) :
325 var paginationRange = Math.max(scope.maxSize, 5);
326 scope.pages = [];
327 scope.pagination = {last: 1, current: 1};
328 scope.range = {lower: 1, upper: 1, total: 1};
330 scope.$watch('maxSize', function(val) {
332 paginationRange = Math.max(scope.maxSize, 5);
337 scope.$watch(
350 scope.$watch(
358 goToPage(scope.pagination.current);
362 scope.$watch(
374 scope.setCurrent = function(num) {
391 scope.tracker = function(id, index) {
398 var oldPageNumber = scope.pagination.current;
400 scope.pages = generatePagesArray(
403 scope.pagination.current = num;
408 if (scope.onPageChange) {
409 scope.onPageChange(
419 scope.pages = generatePagesArray(
422 scope.pagination.current = page;
423 scope.pagination.last = scope.pages[scope.pages.length - 1];
424 if (scope.pagination.last < scope.pagination.current) {
425 scope.setCurrent(scope.pagination.last);
443 scope.range.lower = (currentPage - 1) * itemsPerPage + 1;
444 scope.range.upper = Math.min(currentPage * itemsPerPage, totalItems);
445 scope.range.total = totalItems;
450 numberRegex.test(num) && (0 < num && num <= scope.pagination.last));
622 this.setCurrentPageParser = function(instanceId, val, scope) { argument
624 instances[instanceId].context = scope;