Skip to content

Commit 9deb0a8

Browse files
author
TheHalcyonSavant
committed
tables should be populated onload
tables are empty at page load, because criteria and pageNo are undefined
1 parent 0ccf9c4 commit 9deb0a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

1820EN_04_Code/08 -filters - array filters full example/arrayFilters.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ angular.module('arrayFilters', [])
5252
$scope.pages.push(i);
5353
}
5454
});
55-
55+
56+
$scope.criteria = '';
57+
$scope.pageNo = 0;
58+
5659
$scope.setActivePage = function (pageNo) {
5760
if (pageNo >=0 && pageNo < $scope.pages.length) {
5861
$scope.pageNo = pageNo;

0 commit comments

Comments
 (0)