import { Component, OnInit } from '@angular/core'; import {TokenStorageService} from '../../services/token-storage.service'; import {NgForOf, NgIf} from '@angular/common'; @Component({ selector: 'app-profile', templateUrl: './profile.component.html', imports: [ NgForOf, NgIf ], styleUrls: ['./profile.component.scss'] }) export class ProfileComponent implements OnInit { currentUser: any; constructor(private token: TokenStorageService) { } ngOnInit(): void { this.currentUser = this.token.getUser(); } }