import { Inject , Pipe , PipeTransform } from '@angular/core' ; import { API_SOURCES } from '@medium-stories/common' ; @ Pipe ( { name : 'path' } ) export class PathPipe implements PipeTransform { constructor ( @ Inject ( API_SOURCES ) private apiSources ) { } transform ( path , prefix = '' , postfix = '' ) { return `${ this . apiSources }/${ path }` ; } }