项目中使用锚点组件,像实现锚点文字水平放置为什么报错呢?<nz-anchor [nzDirection]="'horizontal'">
nzDirection设置为horizontal 启动项目,项目报错:
提示如下:Can't bind to 'nzDirection' since it isn't a known property of 'nz-anchor'.
- If 'nz-anchor' is an Angular component and it has 'nzDirection' input, then verify that it is included in the '@Component.imports' of this component.
- If 'nz-anchor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.
- To allow any property add 'NO_ERRORS_SCHEMA' to the '@Component.schemas' of this component.
nz-anchor
组件是否已经导入nz-anchor
是否支持nzDirection