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

[error] Can't bind to 'action' since it isn't a known property of 'g2-card'. #745

Closed
Caims01 opened this issue Oct 25, 2018 · 6 comments
Closed

Comments

@Caims01
Copy link

Caims01 commented Oct 25, 2018

Can't bind to 'action' since it isn't a known property of 'g2-card'.

  1. If 'g2-card' is an Angular component and it has 'action' input, then verify that it is part of this module.
  2. If 'g2-card' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

@cipchk

@cipchk
Copy link
Member

cipchk commented Oct 25, 2018

Pls import @delon/g2 lib. to DelonModule (https://github.com/ng-alain/ng-alain/blob/master/src/app/delon.module.ts#L80)

@Caims01
Copy link
Author

Caims01 commented Oct 25, 2018

@cipchk
能否贴一下代码给我看下,我怕理解有误,并且我看了此repository的delonModule并没有导入@delon/g2,为什么这个repository运行的g2图表能正常显示?

@cipchk
Copy link
Member

cipchk commented Oct 25, 2018

笔误 @delon/chart

@Caims01
Copy link
Author

Caims01 commented Oct 25, 2018

我看了默认的ng-alain@next是有import这个@delon/chart


import { DelonChartModule } from '@delon/chart';
DelonChartModule.forRoot(),

但我还是出现错误,所以我比较纳闷

@cipchk

@cipchk
Copy link
Member

cipchk commented Oct 25, 2018

@Caims01
Copy link
Author

Caims01 commented Oct 25, 2018

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

2 participants