Currently I am writing a component, I want to give as input a pipe. I tried to use
export class exampleComponent implements OnInit {
@Input pipe;
}
{{ text | pipe }}
but it is trying to get a pipe named 'pipe'. I want to use the pipe that it received from the input.
any ideas on how to do this?