我在元素的分页循环中有以下手风琴(使用angular-ui-bootstrap ):
<div data-ng-repeat="m in results">
<div class="stuff_in_the_middle">
<accordion id="accordion_{{$index+((currentPage-1)*20)+1}}" close-others="false">
<accordion-group>
[...stuff...]
</accordion-group>
<accordion-group>
[...stuff...]
</accordion-group>
<accordion-group>
[...stuff...]
</accordion-group>
</accordion>
<span id="toggle_{{$index+((currentPage-1)*20)+1}}" onClick="openAllGroups">Toggle groups</span>
</div>
</div>
我想知道如何通过单击切换链接一次展开所有元素。accordion-group
是否可以?