I have a problem using ng-src inside of an iframe. I need to do this:
As what Kop4lyf said you need to add filter in js
//Create a filter for trust url
app.filter('trustAsResourceUrl', ['$sce', function($sce) {
return function(val) {
return $sce.trustAsResourceUrl(val);
};
}]);
and output ih html as
ng-src="{{x.title.rendered | trustAsResourceUrl}}"
Some other filter :
//Create a filter for trust html
app.filter('trustAsHtml', ['$sce', function($sce) {
return function(val) {
return $sce.trustAsHtml(val);
};
}]);