import { Pipe , PipeTransform } from '@angular/core' ; import { decycle } from '../json-helper' ; @ Pipe ( { name : 'decycle' } ) export class DecyclePipe implements PipeTransform { transform ( value ) { return decycle ( value ) ; } }