18 lines
378 B
TypeScript
18 lines
378 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import {AuthService} from '../auth/auth.service';
|
|
|
|
@Component({
|
|
selector: 'app-logout',
|
|
templateUrl: './logout.component.html',
|
|
styleUrls: ['./logout.component.scss']
|
|
})
|
|
export class LogoutComponent implements OnInit {
|
|
|
|
constructor(private auth: AuthService) { }
|
|
|
|
ngOnInit(): void {
|
|
this.auth.logout('/');
|
|
}
|
|
|
|
}
|