import { Pipe , PipeTransform } from '@angular/core' ; import { GlobalContext } from '../../services/global-context' ; @ Pipe ( { name : 'dgAssetsContentPath' } ) export class AssetsContentPathPipe implements PipeTransform { constructor ( private globalContext ) { } transform ( path ) { return this . globalContext . getAssetsContentPath ( path ) ; } }