How to set an iframe src attribute from a variable in AngularJS
I’m trying to set the src attribute of an iframe from a variable and I can’t get it to work… The markup: <div class=”col-xs-12″ ng-controller=”AppCtrl”> <ul class=””> <li ng-repeat=”project in projects”> <a ng-click=”setProject(project.id)” href=””>{{project.url}}</a> </li> </ul> <iframe ng-src=”{{trustSrc(currentProject.url)}}”> Something wrong… </iframe> </div> controllers/app.js: function AppCtrl ($scope) { $scope.projects = { 1 : { “id” : … Read more