Bootstraps index for ngInfiniteScroll and adds structure for infinite scroll