Create a list class that list component can inherit from
The class should handle pagination and contain the following attributes:
-
@Input() document: DocumentModel<JsonApiModel[]>;
- protected currentPage = 1;
And the following methods:
- nextPage()
- previousPage()
- abstract loadList()
Discussion on that: