I want to create a dynamic pipe which I am going to call from the component.
import {Component, Pipe, PipeTransform} from \'angular2/core\';
@Pipe({ name: \
I just wanted to add to @pasha-oleynik answer. Angular 2+ including Ionic 2+ all expect the pipe to be declared in the module:
@NgModule({
declarations: [
AppComponent ,
filter
]
Also this is the only place that the pipe needs to be declared. There is no longer a pipe property under a module or component.