我使用ngFor创建按钮来迭代我的名称数组。我想将我的按钮(例如button1)传递给我在类型记录中的函数,以更改单击对象的颜色。然而,我正在与此斗争,并将感谢任何帮助。<ion-list *ngFor="let name of names; let i = index; "> <div>
<divcontribution"></ion-i
stnArray: [{ Station: string; StnRef: string; }] =[{Station:"Station", StnRef:"Station Reference"}] 我希望在DOM中每行输出2到3张卡片,但是在我的HTML中使用下面的代码只能得到每行一张。<div class='row wow fadeInUp' *ngFor='let index of stnArray;; let i = index; let