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

@ -25,7 +25,7 @@
"@angular/router": "^8.0.0",
"@ngx-loading-bar/http-client": "^3.0.0",
"@ngx-loading-bar/router": "^3.0.0",
"angular2-hotkeys": "^2.1.4",
"angular2-hotkeys": "2.1.4",
"core-js": "^2.5.7",
"hammerjs": "^2.0.8",
"mathjs": "^5.0.4",

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();
}
}