created the rather handy paginated directive. it automates away keeping track of which page your on, and requesting new data on page changes.