1. Skeleton methods for next and prev
currentPageNumber: number = 1; | |
// Fetch next page data | |
next() { | |
this.getData(this.currentPageNumber + 1) | |
} | |
// Fetch previous page data | |
prev() { | |
this.getData(this.currentPageNumber - 1) | |
} | |
// Fetch data from API | |
getData(pageNo: any) { | |
// Fetch API | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment