I have been trying to dynamically set the source of an iframe using a scope variable, but it keeps appearing blank.
Here is what I attempted:
<div ng-repeat="url in urls">
<div ng-click="testAlert(url.domain)">
<iframe ng-src="{{ url.domain }}" ></iframe>
<div style="text-align: center">{[ url.domain ]}</div>
</div>
</div>
The text displays correctly, and the click event alerts the selected domain. However, the ng-src appears to be empty causing the site not to load. If I manually enter an external site as the src attribute, it works fine.