title: Opening PDF file in new tab angular 4?
body: <p>I tried opening a PDF file using the <code>window.open()</code>, but the window opens and closes automatically and the file is downloaded like any other file. How to make the pdf file open in new tab? There are no ad blockers installed.</p>