如何在模板中显示此json数据的“注释”?我的component.html <li *ngFor="let data of products"> <div class="card-imageNgFor only supports binding to Iterables such as Arrays.当我尝试使用以下命令访问评论
我想遍历数组的前四个对象。我想使用ngFor,而不是像这样选择前四个对象: {{ users[*]?.UserName }} *成为0-3 我想使用这个: <div *ngFor="let user of users; let i = index" [attr.data-index]="i">
{{UserName}} 这是可