摘要:
<ul *ngFor="let item of list"> <li>{{show(item.label)}}</li> </ul> 上面的代码每次变化检测的周期都会执行,即使item.label没有改变 此时应该使用Pure Pipes来代替show函数 @Pipe({ name: 'showla 阅读全文
posted @ 2021-01-25 16:15
chen8840
阅读(82)
评论(0)
推荐(0)
浙公网安备 33010602011771号