import { Component , OnInit } from '@angular/core' ; import { AuthService } from "../../shared/auth/auth.service" ; import { SimpleAuthService } from "../../shared/auth/simple-auth.service" ; @ Component ( { templateUrl : './passenger-search.component.html' } ) export class PassengerSearchComponent { name : string ; constructor ( authService ) { this . name = authService . userName ; } }