I want to call function in ng-repeat attribute, here is my code
example plnkr
html
Found the solution:
$scope.prev = null; $scope.getGroupedRange = function() { var data = [{ val: 1, abs: 1, rel: 1, cum: 1, id: 123456 }]; if (angular.equals($scope.prev, data)) { return $scope.prev; } $scope.prev = data; return data; };