Déconnexion
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import {Component, inject} from '@angular/core';
|
||||
import {AuthService} from "../../../core/auth/auth.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-disconnect',
|
||||
imports: [],
|
||||
templateUrl: './disconnect.component.html',
|
||||
styleUrl: './disconnect.component.css'
|
||||
})
|
||||
export class DisconnectComponent {
|
||||
|
||||
private authService = inject(AuthService);
|
||||
logout() {
|
||||
this.authService.logout();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user