The pipe ' ' could not be found angular2 custom pipe

后端 未结 9 1130
时光说笑
时光说笑 2020-11-27 14:33

I can\'t seem to fix this error. I have a search bar and an ngFor. I am trying to filter the array using a custom pipe like this:



        
9条回答
  •  醉话见心
    2020-11-27 15:01

    You need to include your pipe in module declaration:

    declarations: [ UsersPipe ],
    providers: [UsersPipe]
    

提交回复
热议问题