I am facing an issue with this segment:
<tr ng-repeat="data in filtered = (list | filter:search | orderBy : predicate :reverse) | startFrom:(currentPage-1)*entryLimit | limitTo:entryLimit">
<td>{{data.name}}</td>
<td>{{data.price}}</td>
<td>{{data.img}}</td>
<script type="text/ng-template" id="myModalContent.html">
<div class="modal-header">
<h3 dir="rtl" align="center">screenshot</h3>
</div>
<form ng-submit="submit()">
<div class="modal-body">
<img ng-src="{{data.img}}">
</div>
<div class="modal-footer">
<button class="btn btn-warning" ng-click="cancel()">close</button>
</div>
</form>
</script>
<button ng-click="open()">open</button>
When attempting to pass the value from {{data.img}}
to the JavaScript function that triggers a modal window, it is not working correctly.
Do you have any solutions or suggestions?
Thank you!