I am trying to embed a vue app in a website which already is a Vue app of the toplevel div. The main website is a dynamic website (CMS). On toplevel there is a div (vueApp) which is converted to a vue app.
Now I also have a nested vue application which uses it's own javascript (and is hosting). This nested app is entirely inside the html of main vue app (see structure below)
Now 1 have two problems:
- The nested app does not work after the main vueApp is mounted. The events seems to disconnected. So it looks fine but clicks are not handled. The nested app is working when it is not nested.
- Vue complains about the script tag inside the vueApp div.
<html>
<body>
<div id="vueApp">
<script scr="nestedApp.js" type=module />
<div id="nestedApp"></div>
</div>
<script scr="vueApp.js" />
</body>
</html>