Angular search page keeping the browsing history

Angular Search page and how to keep the browsing history

I’m developing a personal project using Angular 9. It’s been a really good experience but sometimes it takes some time to figure out some things, or how to work with observables and make the most of the tools Angular already give us without reinventing the wheel. And this is a good example.

The problem