最近的教程无法在Angular 2上使ag-grid正常工作吗?

Mil*_*n_w 5 ag-grid angular

谁能帮助我在Angular 2上找到有关ag-grid的良好且最新的(有效的)教程?

我无法在官方的Ag-grid网站上使用该教程...

也许一些代码也可以帮助我吗?

提前致谢!

错误:例外:./MyGridApplicationComponent类MyGridApplicationComponent中的错误-内联模板:1:4由以下原因引起:没有BaseComponentFactory的提供者!

编辑

现在,AgGridModule.forRoot()正在运行,首先是不允许的或其他...

还有一个新错误:

ERROR中的ERROR遇到静态解析符号值的错误。调用函数“ AgGridModule”,不支持函数调用。考虑使用对导出函数的引用替换函数或lambda,在C:/ Users / Milan / Documents / Octopus / Octopus 2.0 / src / app / app.module.ts中解析符号AppModule,在C:/ Users中解析符号AppModule /米兰/文档/章鱼/章鱼2.0 / src / app / app.module.ts

小智 4

我对 AgGridModule.forRoot() 也没有任何运气。然而,在使用网格的模块中导入 AgGridModule 为我修复了这个错误。

@NgModule({
  imports: [
    ...
    AgGridModule.withComponents([])
  ]...
Run Code Online (Sandbox Code Playgroud)