import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'shortAddress' } ) export class ShortAddressPipe implements PipeTransform { transform ( address , beforeSymbols = 8 , afterSymbols = 5 ) { return address ? `${ address . substring ( 0 , beforeSymbols ) }...${ address . substring ( address . length - afterSymbols ) }` : '' ; } }