import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'vatAdded' , } ) export class VatAddedPipe implements PipeTransform { transform ( value , rate ) { return value + ( value * rate ) / 100 ; } }