"practical_work/tp_vec2/vec2/vec2.h" did not exist on "99046854caeaf4a5db7e32a363ea8c974e45f08c"
Select Git revision
DojoBackendAPI.iml
user-dropdown.component.ts 559 B
import { Component, Input, OnInit } from '@angular/core';
import { User } from '../Types/types';
import { AuthenticationService } from '../services/authentication.service';
@Component({
selector: 'app-user-dropdown',
templateUrl: './user-dropdown.component.html',
styleUrls: ['./user-dropdown.component.css']
})
export class UserDropdownComponent implements OnInit {
@Input() username!: string;
constructor(public auth: AuthenticationService) {}
ngOnInit(): void {
if (this.username === undefined)
this.username = "Guest";
}
}