Skip to content

Commit 6166777

Browse files
Igor KorshukIgor Korshuk
authored andcommitted
angular-data-grid#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

dist/dataGrid.js

Lines changed: 1 addition & 1 deletion
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();

dist/dataGrid.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/dataGrid.js

Lines changed: 1 addition & 1 deletion
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)