Skip to content

Commit 6166777

Browse files
Igor KorshukIgor Korshuk
Igor Korshuk
authored and
Igor Korshuk
committed
#34 reloading the grid after changes in the grid-data
1 parent d8492cd commit 6166777

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: dist/dataGrid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
$scope.customFilters = $scope._gridOptions.customFilters ? angular.copy($scope._gridOptions.customFilters) : {};
3838
$scope.urlSync = $scope._gridOptions.urlSync;
3939

40-
$scope.$watch('_gridOptions.data', function (newValue) {
40+
$scope.$watchCollection('_gridOptions.data', function (newValue) {
4141
if (newValue && newValue.length > -1) {
4242
$scope.sortCache = {};
4343
$scope.filtered = $scope._gridOptions.data.slice();

Diff for: dist/dataGrid.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/js/dataGrid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
$scope.customFilters = $scope._gridOptions.customFilters ? angular.copy($scope._gridOptions.customFilters) : {};
3838
$scope.urlSync = $scope._gridOptions.urlSync;
3939

40-
$scope.$watch('_gridOptions.data', function (newValue) {
40+
$scope.$watchCollection('_gridOptions.data', function (newValue) {
4141
if (newValue && newValue.length > -1) {
4242
$scope.sortCache = {};
4343
$scope.filtered = $scope._gridOptions.data.slice();

0 commit comments

Comments
 (0)