I'm trying to load data dynamically with ngInfiniteScroll and I'm having a problem where I'm getting
$window.height is not a function.
TypeError: $window.height is not a function
windowBottom = $window.height() + $window.scrollTop();
Your fiddle doesn't work due to a module instantiation error. Regardless,
$window is a reference to the global
window object, and it is not a jqLite/jQuery object. You need to wrap it before trying to access jqLite/jQuery methods.
var windowEl = angular.element($window); windowEl.height();