在我看来,我有:
<div class="grid-wrapper grid-view type-A has-thumbnail" ng-repeat="artist in artists">
artist.id那位艺术家的 id 也是如此。
我有另一个名为的对象album_artists,如下所示:
album_artists = {
'1231': {
...
},
'1232': {
...
}
}
所以在我的div, I want to get thealbum_artists的that corresponds to a particularartist.id 中。我怎样才能做到这一点?
我想要的是这样的:
<div class="grid-wrapper grid-view type-A has-thumbnail" ng-repeat="artist in artists">
<div class="otherstuff" ng-repeat="album in albums[artist.id]">
这是有效的吗?