<li *ngFor="let billingAccount of customerGeneralInfo?.groupedByTechnology">
<tr *ngFor="let billingaccount of billingAccount.billingAccounts">
<td>{{billingaccount?.id}}</td>
</tr>
</li>我想把这个billingaccount?.id用select显示出来。有什么建议吗?
发布于 2017-09-25 08:32:58
假设BillingAccounts是billingAccounts类型的,如果这样做有效,请尝试:
<li *ngFor="let billingAccount of customerGeneralInfo?.groupedByTechnology">
<select [(ngModel)]="billingAccount.BillingAccounts">
<option *ngFor="#billingaccount of billingAccount" [value]="billingaccount.id">{{billingaccount.id}}</option>
</select>
</li>https://stackoverflow.com/questions/46400712
复制相似问题