How can I create a pagination component in Angular 4?

Viewed 21342

I have a API endpoint like /list/students?page=5&rows=10 with a pagination parameters page and size. I want to create a angular2 pagination component.

Input parameters will be

  • page
  • size

In addition, I want to go to specific page and size with arrow buttons.

How can I implement this component ?

2 Answers
Related