import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'shortenTitle' } ) export class ShortenTitlePipe implements PipeTransform { transform ( title ) { return title . split ( ' (' ) [ 0 ] ; } }