I have Angular filter for paging (I used this link as tutorial):
publicApp.angularModule.filter('startFrom', function () {
return function(input, start) {
start = +start; //parse to int
return input.slice(start);
};
});
And relevant part of my HTML looks like this:
<div data-ng-repeat="item in filteredData = ( data | filter:leaderBoardFilter) | startFrom:currentPage*pageSize | limitTo:pageSize">
And even though everything works fine and as expected I get this error in console:
"Error: input is undefined
@http://localhost:1936/MadbarzScripts/Public/PublicMain.js:8:9
Error is referencing to this line:
return input.slice(start);
And what is interesting I get error most of the time but not always. How can I fix this ?