I'm encountering an issue with my code, where the modal is not displaying the values inside the brackets as if they were not bound correctly. Everything else in the ng-repeat seems to be working fine, but for some reason the values are not being displayed within the modal window. I have included a snippet of my code below:
<div ng-controller="modalCtrl">
<script type="text/ng-template" id="modal">
<div ng-repeat="add in addOn">
<p>{{add.name}}</p>
<p>{{add.description}}</p>
</div>
</script>
</div>
Upon further investigation, I noticed that when I include {{addOn}}
in the HTML code, the entire array is repeated. However, I still cannot access the individual values. Can anyone provide any insights on why this might be happening?