import { Component , EventEmitter } from '@angular/core' ; import { map } from 'rxjs/operators' ; import { Navigation as NavigationService } from '../../../services/navigation' ; import { Session } from '../../../services/session' ; import { UpdateMarkersService } from '../../services/update-markers.service' ; @ Component ( { selector : 'm-topbar--navigation' , templateUrl : 'navigation.component.html' , } ) export class TopbarNavigationComponent { user ; items ; hasMarker$ ; constructor ( public navigation , public session , private updateMarkers ) { } ngOnInit ( ) { this . items = this . navigation . getItems ( 'topbar' ) ; this . getUser ( ) ; } getUser ( ) { this . user = this . session . getLoggedInUser ( user => { this . user = user ; } ) ; } }