我有以下代码:AngularJS:与NG-重复一起调NG-模型工作
<h3>Дата наведвання:</h3>
<select class="form-control" size=info.size()>
<option ng-model="i.isSelected" ng-repeat="i in info" value="{{i.date}}">{{i.date}}</option>
</select>
<div class="container">
<table class="table">
<tr>
<td ng-repeat="i in info"><p ng-if="i.isSelected">Name: {{i.name}}</p></td>
</tr>
</table>
</div>
对不起,转储的问题。这很简单,我希望我的表根据选定的日期显示数据。请帮我弄清楚。
此外,你应该尽可能地使用选择框时使用'ng-options'而不是'ng-repeat'。 – Claies
@Claies我想补充一点,在我的回答中,感谢兄弟,欢呼声:-) –