ui-grid
ui-grid copied to clipboard
Is there any good way to refresh data changes manually?
I just wanna do something like this.
https://github.com/angular-ui/ng-grid/blob/2.0.8/build/ng-grid.js line:2930-
grid.applyDataChanges = function() {
dataWatcher($scope.$eval(options.data));
$scope.adjustScrollTop(grid.$viewport.scrollTop(), true);
};
// not needed ?
//$scope.$on('$destroy', $scope.$parent.$watch(options.data, dataWatcher));
$scope.$on('$destroy', $scope.$parent.$watch(options.data + '.length', grid.applyDataChanges));
Is there any function that I don't know?