With vuejs 1 the code was:
const App = Vue.extend(Index);
router.start(App, '#app');
Where Index is a component.
I try to convert it to vue 2 like this:
const App = Vue.extend(Index);
const app = new App(router).$mount('#app');
But this gives an [Vue warn]: Error when rendering root instance.
What is the correct way to re-write this?
thanks