使用Angular,我创建了以下HTML: <ng-container *ngFor="let question of questions.questions; let i = index"> <button *ngFor="let item of question | keyvalue; let buttonIndex = indexspan>
{{prevSelection + butto
我需要扩展这个问题,以便能够以一种允许我使用插值的方式来更改我的代码,以便将#卡片与索引组合,例如“# card10”+索引。或者使用前面的解决方案,但使用多个参数,而不仅仅是两个参数。 <mat-grid-tile *ngFor="let card of cards; let indice=index" [style.border