I have a list of products, and when I click on a specific product, a detailed view page opens. I use "this.history.goBack ()", which is launched with a button, to return to the list of products.
My problem is that every time I click the product list button, it opens at the top of the page, but I want to keep the previous scroll position.
I found this in the update guide, but without help: In 0.13.x, we had several implementations to restore the scroll position, we realized that we can build a better implementation on top of the router and will do it very soon, until the final version 1.0, but it is not necessary to bake in routing, as it was before.
I am using version 1.0, so someone can help me to achieve this.
rosnk source
share