Router redirect to login instead of window reload
This commit is contained in:
parent
49e2532434
commit
eee8f8e949
1 changed files with 9 additions and 10 deletions
|
@ -40,8 +40,7 @@ export class FullLayoutComponent implements OnInit {
|
||||||
.subscribe(
|
.subscribe(
|
||||||
result => {
|
result => {
|
||||||
console.log('Logged out!');
|
console.log('Logged out!');
|
||||||
// TODO Reload? srsly?
|
this.router.navigate(['/login']);
|
||||||
window.location.reload();
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue