el: ‘#app’ and .$mount('#app')

Learn different ways to mount a Vue.js instance.

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:

  1. el: '#app' as a property in the Vue instance
  2. Calling $mount('#app') on the Vue instance

Get hands-on with 1400+ tech skills courses.