Seems my pages require the template tag and closing tag.
But the examples just start with div class= ‘page’.
Why do my pages require template? What am I doing wrong?
Seems my pages require the template tag and closing tag.
But the examples just start with div class= ‘page’.
Why do my pages require template? What am I doing wrong?
The <template>
tag does not appear in DOM , while <div>
tag does.
Check the Vue documentation about the difference.
The examples are just examples - but Vue has a couple of more features to add…
it is for router component only.