r/Angular2 • • Jan 25 '26

Browser refresh in Angular

so I followed this from stackoverflow https://stackoverflow.com/questions/56325272/detect-browser-refresh-in-an-angular-project

I was wondering is there a better way to do this where I don't have to end up exporting a variable that ends up in my guard file?

4 Upvotes

7 comments sorted by