import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; import { roleLabel } from 'src/app/models/role'; import { TokenStorageService } from 'src/app/services/token-storage.service'; @Component({ selector: 'app-profile', templateUrl: './profile.component.html', styleUrls: ['./profile.component.scss'], changeDetection: ChangeDetectionStrategy.Eager, standalone: false }) export class ProfileComponent { readonly user = inject(TokenStorageService).getUser(); readonly roles: string[] = this.user.roles ?? []; readonly roleLabel = roleLabel; }