3
私が望むのは、15pxごとに反復ごとに増加するパディングを追加することです。どのように私はそれを行うことができますどのような提案?これは私がこれまで持っていたものです。繰り返しごとにパディングを増やす方法は?
getClassByValue(index){
return {
'padding-left': 15 * index + 'px'
}
}
<div class="ui-g-2" [ngClass]="getClassByValue(i)">{{orderItem.orditemnum}}</div>