20 lines
482 B
TypeScript
20 lines
482 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import {TokenStorageService} from '../../services/token-storage.service';
|
|
|
|
|
|
@Component({
|
|
selector: 'app-profile',
|
|
templateUrl: './profile.component.html',
|
|
styleUrls: ['./profile.component.scss'],
|
|
standalone: false
|
|
})
|
|
export class ProfileComponent implements OnInit {
|
|
currentUser: any;
|
|
|
|
constructor(private token: TokenStorageService) { }
|
|
|
|
ngOnInit(): void {
|
|
this.currentUser = this.token.getUser();
|
|
}
|
|
}
|