无法绑定到 'spiedTags',因为它不是 'div' Angular angular-scroll-spy 的已知 属性

Can't bind to 'spiedTags' since it isn't a known property of 'div' Angular angular-scroll-spy

执行 'angular-scroll-spy' !

时出错

NG8002:无法绑定到 'spiedTags',因为它不是 'div' 的已知 属性。 这是 .html 文件

<div *ngIf="candidate_output; else contentLoading;" id="parentDiv" scrollSpy [spiedTags]="['DIV']" (sectionChange)="onSectionChange($event)">

您必须为此模块创建另一个指令,或者为了最佳实践,您创建一个共享模块,您可以在其中创建管道、指令...并导出该模块,然后将其导入 wh