내가 그래서이 지침을 만들었다 각 지시문 새로 온 값각도 4 지시어는 다음과 같이
bonusJson = [{
bonus:1500,
amount:2000
},{
bonus:1000,
amount:1000
},{
bonus:500,
amount:500
},{
bonus:0,
amount:100
}];
activeBonus = 0;
그러나보기가 제대로 렌더링되지 않습니다 변수가 다음과 같이 정의된다
<div class="column col-3" *ngFor="let b of bonusJson;let i = index" bonusCard [bonus]="b.bonus" [amount]="b.amount" [isSeleted]="i==activeBonus"></div>
아래 그림과 같이 undefind
이 표시됩니다.
는 왜 지시어입니까? – Aravind
선생님, 숙제의 한 부분이므로 질문했습니다. –