摘要:
在一个*ngFor中,如果同时使用了*ngIf将导致转化为template出错,那么*ngFor中我们如果也想条件性渲染部分跳过呢?放弃语法糖可以做到 <p *ngFor="let hero of heroes">{{hero.name}}<p> /* */ //只显示cmx除外的英雄 <templ 阅读全文
posted @ 2017-08-01 14:55
XIE7654
阅读(1056)
评论(0)
推荐(0)
浙公网安备 33010602011771号