Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Build Your First Vue.js App > Lesson 6

Creating an instance of Vue

Now that we've included Vue in our project, we can create our first instance of Vue in our script file.

Let's first get rid of this console.log.

The Vue library declares a global Vue object, which is a constructor. So we can create a Vue instance by using the new operator, that is new Vue();. We can also pass in a plain object to the constructor for configuration of Vue.

new Vue({});

Mount element


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom