import { Pipe } from '@angular/core' ; import addressExcerpt from '../../helpers/address-excerpt' ; @ Pipe ( { name : 'addressExcerpt' , } ) export class AddressExcerptPipe { transform ( value , uppercase = false ) { return addressExcerpt ( uppercase ? value . toUpperCase ( ) : value ) ; } }