0

I'd like to include external JS scripts via CDN into a VueJS project using the Composition API. I only need these scripts for a specific component. How can I do this?

I have found the following questions with helpful answers: How to include a CDN to VueJS CLI without NPM or Webpack? How to add external JS scripts to VueJS Components? However both of these answers use the Options API and I need to use the Composition API.

aley
  • 23
  • 2
  • 1
    " I only need these scripts for a specific component. " - it's potentially a mistake to ask the question in general because it's specific to the script. Consider explaining what you need to achieve. The scripts that weren't designed to work with components won't work properly as they aren't initialized and destroyed – Estus Flask Jun 29 '23 at 18:01

0 Answers0