Upgrading from ng-grid 2.0.x to ui-grid 3.0
- Module name has changed from nggrid to ui.grid directive name has changed from ng-grid to ui-grid. Before:
<div ng-grid="{ data: data }"></div>
angular.module('yourModule', ['ngGrid'];
After:
<div ui-grid="{ data: data }"></div>
angular.module('yourModule', ['ui.grid'];
- A string value in options.columnDefs is no longer supported. ColumnDefs are now always watched via $watchCollection. Before:
$scope.myColDefs = {[...]};
$scope.gridOptions.columnDefs = 'myColDefs'
After:
$scope.gridOptions.columnDefs = $scope.myColDefs = {[...]};
or
$scope.gridOptions.columnDefs = {[...]};