Question · Vue.js course · Module 1: Vue and Vite
The app.mount() method
What is the app.mount('#app') method used for?
Answer options
- Creates a new HTML file
- Mounts the Vue application to the DOM element with id 'app'
- Installs npm dependencies
- Starts the development server
Show the answer
Correct answer:
- Mounts the Vue application to the DOM element with id 'app'