When using vue.js 1.0
, I used to start my router like this:
router.start(App, 'app');
However, with the upgrade to vue.js 2.0
, the process has changed according to the documentation. Now, it needs to be done as follows:
const app = new Vue({
router
}).$mount('app');
Is there a way to continue using the old method? I currently have to include the following in my laravel blade
file:
<div id="app">
<router-view
transition
transition-mode="out-in">
</router-view>
</div>
But ideally, I would like to implement the above within a component.