[Vuejs]-Switch divs by clicking on checkbox (Vue.js)

0👍

Well, I’ve managed to fix it myself. I didn’t have to import Vue or create a new vue element. I just used data function:

export default {


data: function() {
    return {
      checked: false
    }
  }
}

Leave a comment