title: Angular-Datatables enabling server pagination
body: <p>I have a very large data set displayed with angular-datatables, and am trying to enable server-side pagination with the datatables plugin in my angular component. The API call is to an ASP.NET core service that I am also writing</p>
  
  <p>I cannot seem to find much documentation on how to go about this at all, and I'm relatively new to the datatables plugin.  </p>
  
  <p>My API GET declaration: </p>
  
  <pre><code>public async Task&lt;IActionResult&gt; GetOperations(
     int pageIndex = 0, int pageSize = 50, string query = null)
  </code></pre>
  
  <p>This uses pageIndex and pageSize to call my repository pagination logic.</p>
  
  <p>My datatable component declaration is the same as is detailed in the angular-datables documentation angular way: <a href="https://l-lin.github.io/angular-datatables/#/basic/angular-way" rel="nofollow noreferrer">https://l-lin.github.io/angular-datatables/#/basic/angular-way</a></p>
  
  <p>Should I be using the AJAX way? Is there a way to make this work nicely in angular? If so do I need anything specific to be done in the API Controller that would help?  </p>
  
  <p>I'm also not entirely sold on the angular-datatables ui component, if you know of something that may work better for large dataset displaying and editing, feel free to recommend it.</p>