我对 angularjs 很陌生。现在我有一个数据表和一个过滤器。在过滤器中,我有 2 个选择:列和值。选择一列并使用该值进行过滤。我的想法如下:
<tr ng-repeat="f in filters">
<td>
<select ng-model="f.column"
ui-select2
placeholder="Column"
class="form-control input-sm"
ng-change="filterChange()">
<option ng-repeat="c in params.columns" value="{{c}}">{{elementMap[c].label}}</option>
</select>
</td>
<td>
<select class="form-control input-sm"
ui-select2
ng-model="f.value"
ng-change="filterChange()">
<option ng-repeat="row in data.results" value="{{row.(f.column)}}">{{row.(f.column)}}</option>
</select>
</td>
</tr>
f.column 绑定到我选择的列名。我需要 angularjs 无法识别的 {{row.(f.column)}} 之类的东西。有什么办法可以解决吗?
谢谢