For me, upgrading my application to 2.0 has proven to be quite a challenge and I've spent hours trying to figure it out. In the past, I used vuejs within my application for certain functionalities, without treating it as a standalone vuejs application.
Initially, I initialized vuejs on the body element and everything was working fine with vuejs 1. Now, however, when I try to wrap it in a div and call it like this:
const app = new Vue({
el: '#app',
});
My HTML structure looks like this:
<html>
<body>
<div id="app">
<div class="app-wrapper">
<h1>My stuff</h1>
</div>
</div>
</body>
</html>
I understand that this setup overwrites the content within my div, but how can I apply it to an already rendered page? Is there a way to reload the rendered page into that div again?
Any help would be greatly appreciated. Thank you!