// ECMA 5 - using nodes require() method varAgGrid = require('ag-grid'); // only include this line if you want to use ag-grid-enterprise require('ag-grid-enterprise');
// ECMA 6 - using the system import method import {Grid} from'ag-grid/main'; // only include this line if you want to use ag-grid-enterprise import'ag-grid-enterprise/main';
使用
引入ag-grid后,需要在angularjs中注册ag-grid指令
1 2 3 4 5
// get ag-Grid to create an Angular module and register the ag-Grid directive agGrid.initialiseAgGridWithAngular1(angular);
// create your module with ag-Grid as a dependency var module = angular.module("example", ["agGrid"]);