【发布时间】:2015-01-24 09:47:00
【问题描述】:
我刚刚开始学习使用 Angular.js,但我不知道这个:
我想显示数组中选定的value ="song.title" 与数组中的song.title 匹配的项目。
这是我的代码
<select>
<option ng-repeat="song in songs.tracks">{{song.title}}</option>
</select>
现在我想在此显示更多选定的歌曲数组:
<section ng-repeat="song in songs.tracks">
<div class="panel" ng-show="panel.isSelected(1)" >
<!-- in here i wanna show stuff from the array of the selected song -->
</div>
【问题讨论】:
标签: javascript arrays angularjs angularjs-ng-repeat angularjs-ng-model