You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
379 B
15 lines
379 B
import { Component } from '@angular/core';
|
|
import { AuthService } from '../services/auth.service';
|
|
import { Router } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'app-logout',
|
|
template: ``,
|
|
})
|
|
export class LogoutComponent {
|
|
constructor(private authService: AuthService, private router: Router) {
|
|
this.authService.logout();
|
|
this.router.navigate(['/home']);
|
|
}
|
|
}
|