josebalius / ngReactGrid

A really fast Angular grid using the power of React to render. Based on ng-grid and jQuery DataTables.
http://josebalius.github.io/ngReactGrid/
MIT License
328 stars 47 forks source link

Refresh isn't working with data provided by service unless it's explicitely copied #65

Open Hi-Fi opened 9 years ago

Hi-Fi commented 9 years ago

Example (non-functional) at: http://plnkr.co/edit/5171yuyhlQ7eHEjOSitu

If I click "Refresh list", list just stucks at "Loading..." phase, even getData() gets executed.

Workaround is to copy "data" ($scope.grid.data =data; -> $scope.grid.data = angular.copy(data);), but that seems a bit stupid way especially if there's bigger data lists used.