Angular Directive for adding infinite-scroll capabilities to lists and tables