I was previewing through another tab:
public visualizarArquivo(file): void {
var url = window.URL.createObjectURL(file);
var a = document.createElement("a");
a.setAttribute("href", url);
a.setAttribute("target", "_blank");
a.click();
}
But I had problem with Popup blocking, now I need to load this preview in a modal, how do I load through embed or iframe?