*ngFor="let item of channelCount | times"
写一个管道限制一下就行,群里JiaYi大佬给的方案
像vue一样v-for="i of 10"
第二种方法
let i = index; *ngIf="index<5"
微信扫一扫
*ngFor="let item of channelCount | times"
写一个管道限制一下就行,群里JiaYi大佬给的方案
像vue一样v-for="i of 10"
第二种方法
let i = index; *ngIf="index<5"
相关推荐