Angular directive for infinite scrolling.