- How to stay on the same page when clicking the browser back button in angular?
- How do I stay in the same page after clicking links?
How to stay on the same page when clicking the browser back button in angular?
You have to use the angular router in order to do this. If user goes to your app, then clicks on a link that redirect to an other page of your app, the back button will stay inside your app.
How do I stay in the same page after clicking links?
To take control of this behavior, press Ctrl when you click a link to stay on your current page while opening the link in a new tab in the background. Likewise, use Ctrl-Shift-click to open link in new tab and switch to it.