I am trying to extract a client side PDF file for display in a browser. I tried my usual href path with respect to the html file, and it does not work.
<a href="../assets/file.pdf>Get File</a>
And using routing doesn't work either, or I'm not using the correct tag ...
RouterModule.forRoot([ { path:"resume", redirectTo: '../assets/file.pdf' }, { path: '', component: AppComponent } ])
Not sure if routing is the way to go, I just learned how to route components based on their documentation.
source share