added profil section
This commit is contained in:
25
src/app/components/profil/profil.ts
Normal file
25
src/app/components/profil/profil.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {UserInfo} from "../../interfaces/user.interface";
|
||||
import {NzButtonComponent} from "ng-zorro-antd/button";
|
||||
|
||||
@Component({
|
||||
selector: 'app-profil',
|
||||
imports: [
|
||||
NzButtonComponent
|
||||
],
|
||||
templateUrl: './profil.html',
|
||||
styleUrl: './profil.css',
|
||||
})
|
||||
export class Profil {
|
||||
data: UserInfo =
|
||||
{
|
||||
name: 'Mathys Sanchez Vendé',
|
||||
email: 'mathys.sanchez@vende.fr',
|
||||
fonction: 'admin',
|
||||
};
|
||||
|
||||
getInitial(name: string): string {
|
||||
if (!name || name.trim() === '') return '?';
|
||||
return name[0].toUpperCase();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user