lundi 13 mai 2019

How to come back to the same portion of data set in virtual scrolling?

There is a wonderful pattern of optimizing rendering of large data sets called virtual scrolling. In this specific case I am using Angular Material CDK api's https://material.angular.io/cdk/scrolling/overview to get that behavior. However, I have a requirement when user navigates to different page and comes back, user should be at that specific location she left (ex. navigated to details of item 3498 and when comes back should start at item 3498 not item 1). What is the best way to achieve that?

Aucun commentaire:

Enregistrer un commentaire