title: Preview before upload with angular 4 in modal, using embed or iframe
body: <p>I had problems with this code, because of the pop ups:</p>
  
  <pre><code>@component
  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();
  }
  
  
  @html
  &lt;div class="col-md-6"&gt;
      &lt;fieldset class="form-group"&gt;
          &lt;label for="exampleInputFile"&gt;{{ 'Foto 3x4' | translate }}&lt;/label&gt;
          &lt;input type="file" class="form-control-file" id="inputFileFoto" #arquivophoto accept=".pdf,.jpg,.jpeg,.png (change)="onFileChange($event)"&gt;
      &lt;/fieldset&gt;
  
      &lt;button id="view" type="button" class="btn btn" (click)="openPhoto(contentPhoto)"&gt;
          &lt;span class="fa fa-eye"&gt;&lt;/span&gt;
      &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now, i need open this file in modal, how i can use iframe or embed?</p>