Ngx-infinite-scroll: Can you bring back infiniteScrollContainer option?

Created on 23 Nov 2016  路  5Comments  路  Source: orizens/ngx-infinite-scroll

As in title - this option is very useful in some cases. Can you implement it in angular2 version?

enhancement question

Most helpful comment

No, in some cases I want to track scroll of some parent element instead of the element that I defined infinite-scroll to. Also window scroll is not working as there is no window scroll at all in that case.

All 5 comments

can you provide a link?

@orizens what link? I am talking about infinite-scroll-container parameter that was implemented in infinite-scroll directive for angular 1.x - http://sroze.github.io/ngInfiniteScroll/documentation.html. It would be awesome to have it also in your plugin (to have a possibility to track scroll not only based on window/current element).

isn't that the same container as the one you define the 'infinite-scroll' to?

No, in some cases I want to track scroll of some parent element instead of the element that I defined infinite-scroll to. Also window scroll is not working as there is no window scroll at all in that case.

that seems out of scope for this directive, as you can use the @Hostlistener() and some kind of state

Was this page helpful?
0 / 5 - 0 ratings