简体   繁体   English

无法绑定到“ useStickyClasses”,因为它不是“ div”的已知属性

[英]Can't bind to 'useStickyClasses' since it isn't a known property of 'div'

I am using ngx-stickybits (after npm install ngx-stickybits --save) I import StickybitsModule in my "SharedModule". 我正在使用ngx-stickybits(在npm之后安装ngx-stickybits --save),我在“ SharedModule”中导入了StickybitsModule。

In some component (that belongs to a module that imports the shared module) I wrote- 在某些组件(属于导入共享模块的模块)中,我写道:

<div stickybits [useStickyClasses]="true" [stickToBottom]="false" [stickyOffset]="0" [stuckClass]="is-stuck">

But I am getting this error- 但是我收到这个错误-

Can't bind to 'useStickyClasses' since it isn't a known property of 'div' 无法绑定到“ useStickyClasses”,因为它不是“ div”的已知属性

What did I forgot to do? 我忘了做什么?

我们需要出口StickybitsModule我们SharedModule

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法绑定到“控件”,因为它不是(myComponent)的已知属性 - Can't bind to 'control' since it isn't a known property of (myComponent) Angular 7:无法绑定到“元素”,因为它不是 - Angular 7 : Can't bind to 'element' since it isn't a known property of 无法绑定到“ngModel”,因为它不是“输入”的已知属性 - Can't bind to 'ngModel' since it isn't a known property of 'input' 无法绑定到“matMenuTrigger”,因为它不是“a”的已知属性 - Can't bind to 'matMenuTrigger' since it isn't a known property of 'a' 无法绑定到“ngForOf”,因为它不是“div”的已知属性。 ngFor 不在浏览器中显示任何内容 - Can't bind to 'ngForOf' since it isn't a known property of 'div'. ngFor not displaying anything in the browser NG0303:无法绑定到“ngif”,因为它不是“div”的已知属性 - NG0303: Can't bind to 'ngif' since it isn't a known property of 'div' 无法绑定到“matDatepicker”,因为它不是“div”的已知属性 - Angular - Can't bind to 'matDatepicker' since it isn't a known property of 'div' - Angular Angular 6 日历模板解析错误:无法绑定到“视图”,因为它不是“div”的已知属性 - Angular 6 Calendar Template parse errors: Can't bind to 'view' since it isn't a known property of 'div' 无法绑定到“数据集”,因为它不是“画布”的已知属性 - Can't bind to 'datasets' since it isn't a known property of 'canvas' 无法绑定,因为它不是选择器组件的已知属性 - Can't bind to since it isn't a known property of selector component
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM