updated_at: 2024-12-16 04:59

ngFor

*ngFor="let user of users" 
*ngFor="let obj of setData.items;let i = index"
<div *ngFor=" let tweet of singleCategory;  let i=index">
    <div *ngIf="i<2">
        {{tweet}}
    </div>
</div>
<ion-option *ngFor="#name of namesList" [value] = "name.shortName">{{name.shortName}}</ion-option>

ngFor trackBy

ngfor 의 최적화를 위해

*ngFor='let student of students; 
trackBy:trackByStudentID; 
let i=index; 
let isFirst = first; 
let isLast = last, 
let isEven = even; 
let isOdd = odd'

Table of contents 목차

평점을 남겨주세요
평점 : 2.5
총 투표수 : 1

질문 및 답글