angular2-hotkeys beyond this breaks with Angular 8.x

logout now works.
Only the clientID does not work as of now
This commit is contained in:
tanshu
2020-05-12 00:31:53 +05:30
parent ae8c46084c
commit cd764be49c
2 changed files with 2 additions and 8 deletions

View File

@ -13,13 +13,7 @@ export class LogoutComponent implements OnInit {
}
ngOnInit() {
this.auth.logout().subscribe(
(result) => {
this.toaster.show('Success', 'Logged Out');
this.router.navigateByUrl('/');
},
(error) => this.toaster.show('Danger', error.error)
);
this.auth.logout();
}
}