title: Angular: Open file dialog upon button click
body: <p>I'm using Angular 8. 
  Upon button click I want to open a file dialog, select a file and then call an event that will handle this file. </p>
  
  <p>Thank you,
  Zvika </p>
  
  <p>I tried the following code in HTML. 
  But I do not want anything to be displayed in HTML. </p>
  
  <p></p>
  
  <p><strong>HTML</strong></p>
  
  <p><code>&lt;p-fileUpload name="myfile[]" customUpload="true" auto="true" (uploadHandler)="onOpenFile($event)" accept="application/pdf"&gt;&lt;/p-fileUpload&gt;</code></p>
  
  <p><strong>ts</strong></p>
  
  <p><code>public onOpenFile (event)
  {
  }</code></p>