import { Pipe , PipeTransform } from "@angular/core" ; import { Entity } from "../../../../entity/model/entity" ; @ Pipe ( { name : "entityFunction" , } ) export class EntityFunctionPipe implements PipeTransform { transform ( value , func ? ) { return func ( value ) ; } }