会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
chen8840
博客园
首页
新随笔
联系
订阅
管理
2021年1月25日
使用Pure Pipes来替换HTML里面的纯函数
摘要: <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
阅读(77)
评论(0)
推荐(0)
编辑