How to remove previous all pages from dom, so that when we click on back button, it should simply exit from app.
I solved it by adding in route reloadAll: true
{
path: ‘/’,
url: ‘./index.html’,
name: ‘home’,
options: {
reloadAll: true,
}
}
But there is one issue, on address bar /#!/ is present.
Current:
http://192.168.43.199:3000/#!/
Expected:
http://192.168.43.199:3000
Note: I have to navigate to index page and i am navigating like this - app.router.navigate(’/’);