There are 2 separate ng grids on a single page, each with infinite scrolling that loads server-side data on ngGridEventScroll
.
scope.$on('ngGridEventScroll', function(event) { ... });
Each grid is designed to make its own unique server-side call to load data specific to that particular grid.
However, due to the lack of 'namespace' for the ngGridEventScroll
, both grids trigger on the scroll event whenever either grid generates it.
Is there a way to 'scope' the ngGridEventScroll
event more specifically so that each grid can listen only to its scroll event and not be affected by the other?