import {Component, inject, OnInit} from '@angular/core'; import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; import {AuthenticationService} from '../../core/service/authentication.service'; import {Router} from '@angular/router'; @Component({ selector: 'app-disconnection', imports: [MatProgressSpinnerModule], templateUrl: './disconnection.component.html', styleUrl: './disconnection.component.scss' }) export class DisconnectionComponent implements OnInit { private authenticationService = inject(AuthenticationService); private router = inject(Router); ngOnInit(): void { this.authenticationService.unauthenticate(); this.router.navigate(['/home']); } }