Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按GITHUB上示例,无法跑起来? #56

Open
1166544 opened this issue Jan 2, 2018 · 2 comments
Open

按GITHUB上示例,无法跑起来? #56

1166544 opened this issue Jan 2, 2018 · 2 comments

Comments

@1166544
Copy link

1166544 commented Jan 2, 2018

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'. ("

][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'.

请帮忙看下。
步骤:

1.npm install echarts --save
npm install ngx-echarts --save

  1. "../node_modules/echarts/dist/echarts.min.js"

import { NgxEchartsModule } from 'ngx-echarts';

@NgModule({
imports: [
...,
NgxEchartsModule
],
...
})
export class AppModule { }

  1. Simple example:

html:

....
@xieziyu
Copy link
Owner

xieziyu commented Jan 2, 2018

看问题是NgxEchartsModule没有被正确import到使用的module中。

@FaussYao
Copy link

嗯 是的 我也遇到过 解决方法 在我echarts 组件当前所在的shared module中import NgxEchartsModule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants