navigate to route and refresh angular 6
this.router.navigate(['path/to'])
.then(() => {
window.location.reload();
});
navigate to route and refresh angular 6
this.router.navigate(['path/to'])
.then(() => {
window.location.reload();
});
angular change url without reload
You could use location.go(url) which will basically change your url, without change in route of application.
NOTE this could cause other effect like redirect to child route from the current route.
Related question which describes location.go will not intimate to Router to happen changes.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us