title: Angular 2 - Download File on Click Event
body: <p>I am unable to find the answer anywhere, hopefully someone can help.</p>
  
  <p>I have an Angular2 click event defined in the template, inside the table's cell:</p>
  
  <pre><code>&lt;td (click)="click2Download()"&gt;fileName.txt&lt;/td&gt;
  </code></pre>
  
  <p>In the typescript component, I need help to define a method <strong>click2Download()</strong> that would automatically start downloading the fileName.txt to client's browser. Note: file is on the same domain, e.g.:</p>
  
  <pre><code>http://example.com/fileName.txt
  </code></pre>
  
  <p>Any way of doing this with Angular2?</p>