import { Component, OnInit } from '@angular/core'; import { AuthService } from 'src/app/authentication/auth.service'; @Component({ selector: 'app-user-logout', templateUrl: './user-logout.component.html', styleUrls: ['./user-logout.component.scss'] }) export class UserLogoutComponent implements OnInit { constructor(private authService: AuthService) { } ngOnInit(): void { this.authService.logout(); } }