When you have the entire dataset available in-memory you can hand this to NgTableParams to manage the filtering, sorting and paging of that array
NgTableParams