The video for this lesson is currently being updated, please read the transcript instead.

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

To view the complete lesson you'll need to login or join this course.


Click to load comments...