1
下面的代码似乎不起作用。在Angular 2中甚至有可能吗?使用Angular 2在HTML5中动态定义输入类型
<table class="table table-responsive" style="border:0">
<tr *ngFor="#column of columns" style="height:20px;">
<td class="text-right" style="padding-top:10px;border:0">
<h4> {{column | case}}: </h4>
</td>
<td class="text-center" style="padding-top:10px;border:0">
<input type="{{column == 'created_date' ? date : text}}" class="form-control" />
</td>
</tr>
</table>
笑我太愚蠢!谢谢 – user728630