<div ng-controller="MainCtrl">
<table at-table at-list="filteredList" at-paginated at-config="tableConfig"></table>
. . .
<at-pagination at-list="filteredList" at-config="tableConfig"></at-pagination>
</div>
$scope.$on("filterChanged",
function (event, newFilterStr) {
$scope.filteredList = $filter("filter")($scope.appdata, newFilterStr);
});
$scope.$watch("filteredList.length", function(newLen, oldLen, scope){
console.log("$scope", $scope.$id, "scope: ", scope.$id,
"scope.filteredList.length", scope.filteredList.length,
"newLen: ", newLen,"oldLen:", oldLen
);
})
$scope.filteredList = $filter("filter")($scope.appdata, newFilterStr);