新建项目
npm install -g @angular/cli
ng new my-app --style scss --routing falsecd my-app
ng serve
安装aggrid
npm install --save ag-grid-community ag-grid-angular
npm install
# in certain circumstances npm will perform an "auto prune". This step ensures all expected dependencies are present
(src/app/app.module.ts):
import { AgGridModule } from 'ag-grid-angular';
@NgModule({
imports: [
AgGridModule.withComponents([])