title: Angularjs Search in large data set with pagination
body: <p>currently I use filter:query for searching within the data, something like this</p>
  
  <pre><code>&lt;input type="text" ng-model="query"&gt;
  &lt;tr ng-repeat="thought in thoughts | filter:query"&gt;
  &lt;td&gt;thought.title&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>It works well, if I load the complete json data at once.
  Now my question is can I achieve server side search along with pagination as I don't want to load the complete data set at once? </p>
  
  <p>One approach : For the current result set search can be performed normally using filters, if no results are found make a call to server requesting the another piece of data. Is this approach good ? </p>