Hello. I can not understand how to properly use the components and routing. I want to use routing from vuejs , my logic is that when switching to, for example, "/main" , vuejs will load the parent component in id="content" . will contain local components with their own templates. I do not quite understand how to do it correctly. I re-read the documentation several times, but still, I could not understand: with
HTML:
<div class="center-n" id="content"> <main-pg> </main-pg> </div> Vuejs:
var live = Vue.component('main-pg', { template: '#live' }); new Vue({ el: '#content', }) and that's all stalled. Please explain who is not difficult: 3 Thanks in advance!