ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Is there any good way to refresh data changes manually?

Open junkoro opened this issue 12 years ago • 0 comments

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?

junkoro avatar Jun 12 '14 05:06 junkoro