[Vuejs]-Nuxt cannot change data variable

0👍

Remove the quotes from openPopup in your data. It is being treated as a string.

data () { 
    return { openPopup: 1 }
  },

0👍

Something wrong in other place. Your code is working fine ( if u fix multiple root elements ).

here it is on codesandbox

https://codesandbox.io/s/yqxxkpyw61

Leave a comment