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: \
In version rc6 you need to register the pipes you want to use in a module -> declarations
@NgModule({ declarations: [ AppComponent , filter ]....