【发布时间】:2016-12-11 22:44:01
【问题描述】:
所以我关注了这个帖子access key and value of object using *ngFor
但是我收到“找不到管道错误”。
我已经做到了
@Pipe({name: 'keys'})我已经导出了这个类。
我已经在我的 app.module.ts 中导入了它
我已将其放入声明中
我已将它包含在我的 app.component.ts 中(我正在使用它)
我还缺少什么?
【问题讨论】:
-
不要描述你的代码。发表它。不要描述错误。发布它。
-
我想关闭它,但 stackoverflow 警告我不要关闭它:\
标签: angular typescript ngfor