Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public handleAuthentication(): void {
- if (this.isAuthenticated()) {
- if (this.isAdmin()) {
- this.router.navigate(["/admin"]);
- }
- else {
- this.router.navigate(["/list"]);
- }
- }
- else {
- this.router.navigate(['/']);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement