title: Angular 4 file chooser
body: <p>I have a project were i need to add a document to an API by a button</p>
  
  <p>But right now i just need that the button opens the file chooser and let me select the file and returns me the name of it. </p>
  
  <p>I have this button assigned with the event. </p>
  
  <p>So can someone please help me with the code to open the file finder please?, i'm a begginer of angular.</p>
  
  <p>Button:</p>
  
  <p><code>&lt;button (click)="myEvent($event)"&gt;Add Document&lt;/button&gt;</code></p>
  
  <p>Event:</p>
  
  <pre><code> myEvent (event) {
   console.log(event); }
  </code></pre>
  
  <p>Thanks in advance, David.</p>