title: How to open local path pdf file from angular 2+
body: <p>I have Anchor element which is inside angular 2+ component. </p>
  
  <pre><code>&lt;a href="file://tmpcmamva07/JobTrackerFileServer_Test/TempPDFFiles/pdf.pdf"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>When I click on it, I get error at browser console: 
  <strong>'Not allowed to load local resource: file://tmpcmamva07/JobTrackerFileServer_Test/TempPDFFiles/pdf.pdf'</strong></p>
  
  <p>But, same link I tried creating inside sample HTML5 template, it works fine without throwing error.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;a href="file://tmpcmamva07/JobTrackerFileServer_Test/TempPDFFiles/pdf.pdf"&gt;Link&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>One thing to add, angular 2+ runs on its server, where are html file doesn't have server and it is opened inside the browser. </p>
  
  <p>How to make link work in angular 2+?</p>