Ngx-infinite-scroll: Can't bind to 'infiniteScrollDistance' since it isn't a known property of 'div' in angular version 7

Created on 13 Nov 2018  路  3Comments  路  Source: orizens/ngx-infinite-scroll

Uncaught Error: Template parse errors:
Can't bind to 'infiniteScrollDistance' since it isn't a known property of 'div'. ("ia-label="Search files" />

The following code which I have used:
<div class="file-list folder-list" infiniteScroll [ERROR ->][infiniteScrollDistance]="8" [infiniteScrollThrottle]="50" (scrolled)="onScroll()">

Most helpful comment

Facing same issue, @domessina yes, I have included InfiniteScrollModule, in imports section of app.module.ts

All 3 comments

Is InfiniteScrollModule included in your imports in app.module.ts ?

Facing same issue, @domessina yes, I have included InfiniteScrollModule, in imports section of app.module.ts

Was this page helpful?
0 / 5 - 0 ratings