el: ‘#app’ and .$mount('#app')
Learn different ways to mount a Vue.js instance.
We'll cover the following
There are multiple syntaxes to mount a Vue
instance. They might be different in syntax but perform everything in a similar fashion. In this lesson, the two most common ways to mount the Vue
instance are discussed:
el: '#app'
as a property in theVue
instance- Calling
$mount('#app')
on theVue
instance
Get hands-on with 1200+ tech skills courses.