Before the rc.5, I used to initialize my custom pipe in the component like this:
private myCustomPipe = new CustomPipe()
this.myCustomPipe.transform(...)
However, after migrating the application, I encountered an error with the new CustomPipe() instantiation (I moved the injection from the component to the module's declarations).
In app.module.ts :
@NgModule({
declarations: [CustomPipe],
imports: [
BrowserModule,
FormsModule,
HttpModule
],
bootstrap: [AppComponent],
})
export class AppModule {}
Is there a way to achieve this in Rc.6?