[英]How can I make the *ngfor work in a modal?
我正在使用他 *ngfor 但模態由於某種原因無法正常工作
<table *ngFor="let wt of wtl">
<tr>
<td *>
<mat-form-field style=" width: 600px;">
<textarea rows="8" cols="360" matInput [(ngModel)]="wt.description" name="comment"
type="text" id="description" placeholder="Comentarios de Cierre"
autocomplete="off"></textarea>
</mat-form-field>
</td>
</tr>
</table>
很難說出你想要什么功能。 但是嘗試將 ngFor 放在 tr 標簽中。 這應該用您的 forms 填充表格的行。
<tr *ngFor="let wt of wtl">
還有這個標簽
<td *>
我不熟悉將 * 單獨放在標簽旁邊,這會給我一個錯誤,因此如果不是故意的,您可能想要刪除 *。
<td>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.