account.admin.component.ts 553 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AuthService } from '../services/auth.service';

@Component({
  selector: 'app-account.admin',
  templateUrl: './account.admin.component.html',
  styleUrls: ['./account.admin.component.scss']
})
export class AccountAdminComponent implements OnInit {

  constructor(private authService: AuthService, private router: Router) { }

  ngOnInit(): void {
  }
  
  logout(){
    this.authService.logout();
    this.router.navigateByUrl('/auth/login');
  }

}