Skip to content
Snippets Groups Projects
Select Git revision
  • 5b88f0586c16387588756f7227b446870e0a0abd
  • main default protected
  • add_export_route
  • add_route_assignments
  • 4.1.0-dev
  • 4.0.0
  • 3.5.3
  • 3.5.3-dev
  • 3.5.2
  • 3.5.2-dev
  • 3.5.1
  • 3.5.1-dev
  • 3.5.0
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.3
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 3.0.1
  • 3.0.0
24 results

AssignmentRoutes.ts

Blame
  • Forked from Dojo Project (HES-SO) / Projects / Backend / DojoBackendAPI
    Source project has a limited visibility.
    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";
      }
    }