I attempted to implement the code from 32400236/dynamically-generate-modals-with-mobileangularui but encountered issues. I also tried using the following:
<div class="access-item" ng-repeat="item in items track by $index">
<a ui-turn-on="$index">Activate unique modal</a>
<div ui-content-for="modals">
<div class="modal modal-overlay" ui-if='$index' ui-state='$index'>
...
OR
<div class="access-item" ng-repeat="item in items track by $index">
<a ui-turn-on="item.id">Activate unique modal</a>
<div ui-content-for="modals">
<div class="modal modal-overlay" ui-if='item.id' ui-state='item.id'>
...
However, only the last modal is displayed when activated.
Despite trying the approach suggested on 32400236/dynamically-generate-modals-with-mobileangularui, the designated function does not execute and no modal appears.
Is there a proper way to achieve this functionality?