Disabling browser back navigation in Angular
To prevent browse back navigation we make use of History.pushState()web api. As soon as the user lands on the component where we want to disable back navigation, we set history.pushState(null, '').
As per MDN docs, pushState() has three parameters:
...
blog.aakashgoplani.in2 min read
Nallaiyan V
I use this code after upgrade 13 not working