0

I have a vue project setup which is working fine. I have a set of html/js/files (written by some other person, not using vue) that I want to inlcude in my project. The layout is like -

-> external.html (includes js and css also within it)
-> external2.html (includes js and css also within it)
-> etc.

Now in my vue-component, when I click on a link, the vue router should direct it to external.html file and the css/js present in the external.html file must get executed.

How can I do that without rewriting the whole code to make it vue-compatible?

2
  • Does this answer your question? How to load external html file in a template in VueJs Commented Jul 23, 2020 at 0:16
  • I saw that answer but I don't think that can solve my problem. My external html files contains both html and javascript. I can import the html as template but what do i do about the javascript (written in plain js, not using vue)? How do I load that with minimum refactoring. Commented Jul 23, 2020 at 2:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.