This is my controller
if (!response.CodError) {
$scope.datosImprimir.Resultado.PDF = response.Valor;
$scope.contenido = $sce.trustAsHtml('<embed width="100%" alt="pdf" src="data:application/pdf;base64,' + response.Valor + '" class="pdfImprimir" pluginspage="http://www.adobe.com/products/acrobat/readstep2.html">');
} else {
bootbox.alert($scope.datos.Errores[response.CodError]);
}
and my view:
<div id="contenedor" ng-bind-html="contenido"></div>
Eh looking around and I tried everything I found but nothing helped me