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.
Test-driving Vue 3 > Lesson 3

Configuring a Vue 3 instance

A modal window can be in one of two states - opened, or closed.

Let's manage this state by adding a boolean data property modalOpen which we'll give an initial value of false.

src/main.js

import { createApp } from "vue";

const app = createApp({
  data: () => ({
    modalOpen: false
  })
});

app.mount("#app");

Vue 2 way


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