Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 734 Bytes

3.0_UPGRADE.md

File metadata and controls

31 lines (27 loc) · 734 Bytes

Upgrading from ng-grid 2.0.x to ui-grid 3.0

  1. 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'];
  1. 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 = {[...]};