Mounting a Vue instance to a DOM element
This blog post was originally published a little while ago. Please consider that it may no longer be relevant or even accurate.
Here's something cool I learnt from Evan You's talk on Vue.js at Laracon - how to mount a Vue instance to a DOM element after you've created it, instead of providing the
el option in the constructor object.
$mount() method on your Vue.js instance will then mount it on the DOM for you. The above code is the equivilant of the more familiar way.