My problem is when I want to do the following example of the documentation of a grid.
Specifically this function:
$scope.toggleVisible = function() {
$scope.columns[0].visible = !($scope.columns[0].visible || $scope.columns[0].visible === undefined);
$scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.COLUMN);
}
When you run this line $scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.COLUMN);
tells me that uiGridConstants is undefined, so I can not get the table to update. I clarify that inject uiGridConstants in the corresponding controller
appAngular.controller('fillTableES', ['$scope', '$http', '$log', '$interval', '$rootScope', 'uiGridConstants', function ($scope, $watch, $http, $log, $interval, $rootScope, uiGridConstants)
Thanks