title: paginate ng-repeat items which are filtered using filter:query
body: <p>I am trying to filter|query on a list of items in angular which are paginated.</p>
  
  <p>The problem is the filter|query works only on the paginated items, but I would like to paginate only the filtered items, rather than vice-versa.</p>
  
  <p>For example:</p>
  
  <ol>
  <li>list of items</li>
  <li>paginate</li>
  <li>if filtered, then paginate the filtered items</li>
  </ol>