[Vuejs]-How to use links to download PDF files in Vue/Nuxt

2๐Ÿ‘

I remember having the same trouble as you a few months back.

While looking at some older code it turns out I used a module called vue-pdf.

After declaring the module as a component like so:

components : {
  pdf : PDFViewer,
}

You can just use it in your markup by passing in your link:

<pdf :pdf="brochureDocument"/>
๐Ÿ‘คdavedeecoder

Leave a comment