import { Pipe , PipeTransform } from "@angular/core" ; @ Pipe ( { name : 'prescale' } ) export class PrescalePipe implements PipeTransform { transform ( value , scale ) { return value && `/scale/${ value }?size=${ scale }` ; } }