import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'sharedEventTitle' } ) export class EventTitlePipe implements PipeTransform { param event returns transform ( event ) { const properties = event . properties || { } ; return `${ properties . title }` ; } }