$sce.trustasresourceurl Is Not Working
I am working with iframe in my project just tried to open url inside my app through iframe , but its not working at my end , please have a look and provide your valuable suggestion
Solution 1:
I don't know if iframe is supported by angular logic. Anyways, instead of the doubled "src" attribute, write
ng-src="{{securedUrl}}"
Also, it would be nice to put a validity check on the
LocalStorage.getData("orderid")
value.
Solution 2:
Ah wait. I didn't notice you are inflating that value as a query param. I don't think it could work in any way. You are just filling an address, and whitelisting a link, you are not getting the data.
You probably could use
$http({
url : $sce.trustAsResourceUrl( yourURL ),
method : "GET"
}).then(
function(data){
$scope.myData = data;
},
function(error){
// manage error
}
);
Post a Comment for "$sce.trustasresourceurl Is Not Working"