I\'m trying to set the src attribute of an iframe from a variable and I can\'t get it to work...
src
The markup:
this way i follow and its work for me fine, may it will works for you,
here trustThisUrl is just filter,
angular.module("app").filter('trustThisUrl', ["$sce", function ($sce) { return function (val) { return $sce.trustAsResourceUrl(val); }; }]);