Ag grid AG电网+;角度6=兼容?

Ag grid AG电网+;角度6=兼容?,ag-grid,angular6,Ag Grid,Angular6,刚从Angular开始,显然是NG6 试图用AG Grid创建一个演示,以证明付费版本的成本是合理的,但是按照他们网站上的简单步骤开始,下面给出了错误。 让我先确定这个组件是否与Angular 6兼容 干杯, N 未捕获错误:模板分析错误: 无法绑定到“rowData”,因为它不是“ag grid angular”的已知属性。 1.如果“ag grid angular”是一个角度组件,并且具有“rowData”输入,则验证它是否是此模块的一部分。 2.如果“ag grid angular”是一个

刚从Angular开始,显然是NG6

试图用AG Grid创建一个演示,以证明付费版本的成本是合理的,但是按照他们网站上的简单步骤开始,下面给出了错误。 让我先确定这个组件是否与Angular 6兼容

干杯, N

未捕获错误:模板分析错误:
无法绑定到“rowData”,因为它不是“ag grid angular”的已知属性。
1.如果“ag grid angular”是一个角度组件,并且具有“rowData”输入,则验证它是否是此模块的一部分。
2.如果“ag grid angular”是一个Web组件,则将“CUSTOM_ELEMENTS_SCHEMA”添加到此组件的“@NgModule.schemas”以抑制此消息。
3.若要允许任何属性,请将“无错误模式”添加到此组件的“@NgModule.schemas”。(“style=”宽度:500px;高度:500px
class=“ag主题巴勒姆”
[错误->][rowData]=“rowData”
[columnDefs]=“columnDefs”>
“”:ng:///AppModule/AppComponent。html@11:16
无法绑定到“columnDefs”,因为它不是“ag grid angular”的已知属性。
1.如果“ag grid angular”是一个角度组件,并且具有“columnDefs”输入,则验证它是否是该模块的一部分。
2.如果“ag grid angular”是一个Web组件,则将“CUSTOM_ELEMENTS_SCHEMA”添加到此组件的“@NgModule.schemas”以抑制此消息。
3.若要允许任何属性,请将“无错误模式”添加到此组件的“@NgModule.schemas”。("
class=“ag主题巴勒姆”
[rowData]=“rowData”
[错误->][columnDefs]=“columnDefs”>
“”:ng:///AppModule/AppComponent。html@12:16
“ag栅格角度”不是已知元素:
1.如果“ag grid angular”是一个角度组件,则确认它是该模块的一部分。
2.如果“ag grid angular”是一个Web组件,则将“CUSTOM_ELEMENTS_SCHEMA”添加到此组件的“@NgModule.schemas”以抑制此消息。("
[错误->]是,它兼容


我一直是个十足的白痴,在app-routing.module而不是app.module中添加了代码。(n00b!!)

在进行ng构建时要小心——prod.ag grid 20.0.0与angular 6.0.0 prod构建有问题。它不会呈现网格。在进行构建集buildOptimization=false

Uncaught Error: Template parse errors:
Can't bind to 'rowData' since it isn't a known property of 'ag-grid-angular'.
1. If 'ag-grid-angular' is an Angular component and it has 'rowData' input, then verify that it is part of this module.
2. If 'ag-grid-angular' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("   style="width: 500px; height: 500px;" 
                class="ag-theme-balham" 
                [ERROR ->][rowData]="rowData" 
                [columnDefs]="columnDefs">
            </ag-grid-angular>
"): ng:///AppModule/AppComponent.html@11:16
Can't bind to 'columnDefs' since it isn't a known property of 'ag-grid-angular'.
1. If 'ag-grid-angular' is an Angular component and it has 'columnDefs' input, then verify that it is part of this module.
2. If 'ag-grid-angular' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
                class="ag-theme-balham" 
                [rowData]="rowData" 
                [ERROR ->][columnDefs]="columnDefs">
            </ag-grid-angular>

"): ng:///AppModule/AppComponent.html@12:16
'ag-grid-angular' is not a known element:
1. If 'ag-grid-angular' is an Angular component, then verify that it is part of this module.
2. If 'ag-grid-angular' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
        <div class="col-10">

            [ERROR ->]<ag-grid-angular 
                style="width: 500px; height: 500px;" 
                class="ag-t"): ng:///AppModule/AppComponent.html@8:12
    at syntaxError (compiler.js:215)
    at TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler.js.TemplateParser.parse (compiler.js:14702)...