import { Component } from '@angular/core' ; import { EventService } from '@core/event.service' ; import { FormatterService } from '@core/formatter.service' ; /**
 * Detail tab contents for the Origin Module
 */ @ Component ( { selector : 'origin-detail' , styleUrls : [ './detail.component.scss' ] , templateUrl : './detail.component.html' } ) export class DetailComponent { constructor ( public eventService , public formatter ) { } /**
     * Get phase data when it exists
     *
     */ getProduct ( ) { let product = this . eventService . product$ . getValue ( ) || { } ; if ( product && product . phasedata ) { product = product . phasedata ; } return product ; } }