错误:无法在E:/ xampp / ht中确定类SerchPendingPipe的模块 docs / angular_after_merge / source_angular / src / app / pipes / Serch-Pending.pipe.ts! 将SerchPendingPipe添加到NgModule中进行修复。
答案 0 :(得分:0)
在app.module.ts
中添加声明数组:
declarations: [SerchPendingPipe]
您的app.module.ts如下:
import { SerchPendingPipe} from 'your_path'; // use control + dot to get the IntelliSense
@NgModule({
declarations: [
.. your components,
SerchPendingPipe
],
imports: [
.. Modules
],
providers: [
..
]
})
export class AppModule { }