Angular Material Pagination Datasource | angular material pagination
ReusingpaginationlogicwithdynamicdatafilteringandsortingAngularInDepthismovingawayfromMedium.MorerecentarticlesarehostedonthenewplatforminDepth.dev.Thanksforbeingpartofindepthmovement![1][2]Inthecourseofthisarticlewe’redevelopingareactivedatasourcefortheAngularMaterial[3]librarythat’llbereusableformanydifferentpaginatedendpointsallowingyoutoconfiguresearchandsortinginputsonaper-instancebasis.ThefinalresultisavailableonStackBlitz[4].AlthoughthereisabunchofstuffyoucandowithJavaScript[5],onmany...
Reusing pagination logic with dynamic data filtering and sorting
AngularInDepth is moving away from Medium. More recent articles are hosted on the new platform inDepth.dev. Thanks for being part of indepth movement![1][2]
In the course of this article we’re developing a reactive datasource for the Angular Material[3] library that’ll be reusable for many different paginated endpoints allowing you to configure search and sorting inputs on a per-instance basis. The final result is available on StackBlitz[4].
Although there is a bunch of stuff you can do with JavaScript[5], on many occasions we’re using it to fetch and display...