core.es5.js:1084 ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'options' since it isn't a known property of 'div'. ("
<div echarts [ERROR ->][options]="echartOption" class="demo-chart">
): ng:///GoodsManageModule/SelfListsSearch.html@2:13
Error: Template parse errors:
Can't bind to 'options' since it isn't a known property of 'div'.
core.es5.js:1084 ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'options' since it isn't a known property of 'div'. (" <div echarts [ERROR ->][options]="echartOption" class="demo-chart">
请帮忙看下。 步骤:
1.npm install echarts --save npm install ngx-echarts --save
"../node_modules/echarts/dist/echarts.min.js"
import { NgxEchartsModule } from 'ngx-echarts';
@NgModule({ imports: [ ..., NgxEchartsModule ], ... }) export class AppModule { }
html: <div echarts [options]="chartOption" class="demo-chart">