I don't know if it would be possible with nginfinitescroll, but i had to recently write my own. This code will load more data (10 at a time) into my scope.
scrolled
app.directive('scrolled', function () {
return function (scope, elm, attr) {
var raw = elm[0];
var funCheckBounds = function (evt) {
var rectObject = raw.getBoundingClientRect();
//rectObject.bottom <= window.innerHeight for scroll to bottom
if (rectObject.top >= window.innerHeight) {
scope.$apply(attr.scrolled);
}
};
angular.element(window).bind('scroll load', funCheckBounds);
};
});
And of course put scrolled in your template.