I made a simple Angular app with three routes (home, hello, detail). Home contains long text with scrolling.
After scrolling little bit, click hello or detail link, then click the home link again.
I want to keep it where I left off and avoid scrolling back or making ajax call if any. In other words serve cached page.
Tried various solutions like scrollPositionRestoration:enabled
or implement custom routereusestrategy but its not working. Not sure what the issue is? Or if I am totally off.
Any help is appreciated. Thanks
Edit: I was able to get the component state to work using compareObjects code block. Now just need the scrolling to work