I'm trying to dynamically load a URL into an iframe via AngularJS. For some reason, I cannot as shown in this fiddle. Can someone please tell me what I'm doing wrong? Why can't I bind to a URL set in my controller? The code is pretty small:
<div ng-app ng-controller="LoginController">
<div>Trying to load {{ customUrl }}</div>
<div><iframe ng-src="{{trustSrc(customUrl)}}" height="480" width="640"></iframe></div>
</div>
function LoginController($scope) {
$scope.customUrl = 'http://www.google.com/custom';
}
Thank you!