Upload Preview in modal

1

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?

    
asked by anonymous 14.05.2018 / 13:15

0 answers