-
Hi @abdmdjr @Beisenbayev @marcusaram, Thank you very much for your answers in Nuxt related issues (#91, #21 and #12)! To summarize and make the solution more discoverable, can I ask one of you to prepare a detailed answer and perhaps some demo snippet? I would really appreciate it. |
Beta Was this translation helpful? Give feedback.
Answered by
zguig52
Oct 3, 2023
Replies: 1 comment 1 reply
-
Quick and easy steps for Nuxt3 integration as a plugin:
import VuePdfEmbed from 'vue-pdf-embed'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VuePdfEmbed)
nuxtApp.vueApp.component('VuePdfEmbed', VuePdfEmbed);
})
<ClientOnly>
<VuePdfEmbed :source="pdfURL" />
</ClientOnly> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hrynko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quick and easy steps for Nuxt3 integration as a plugin:
Create a folder plugins
Create a file named
VuePdfEmbed.client.js
inside the folder with following content: