Skip to content

Instantly share code, notes, and snippets.

@jlaine
Last active November 2, 2020 09:35
Show Gist options
  • Save jlaine/77a077ad680c0911bdd138623b1cd74a to your computer and use it in GitHub Desktop.
Save jlaine/77a077ad680c0911bdd138623b1cd74a to your computer and use it in GitHub Desktop.
Angular pagination - page
export class Page<T> {
count: number; // total number of items
next: string; // URL of the next page
previous: string; // URL of the previous page
results: Array<T>; // items for the current page
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment