In my current setup, I have a paginated loop of elements that contains an accordion. The accordion is implemented using 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>
[...content...]
</accordion-group>
<accordion-group>
[...content...]
</accordion-group>
<accordion-group>
[...content...]
</accordion-group>
</accordion>
<span id="toggle_{{$index+((currentPage-1)*20)+1}}" onClick="openAllGroups">Toggle groups</span>
</div>
</div>
I am interested in finding out if there is a way to expand all the accordion-group
elements simultaneously by clicking on the Toggle link once. Is this achievable?