[Vuejs]-Pass data values as parameters Vue.js

0๐Ÿ‘

I figuered it out:
I passed a reference not a value therefore no changes for initial data were made

0๐Ÿ‘

You need to declare data option as a function with a return value, not an
object:

new Vue({
  data(){
    return {
      ...
    }
  }
})

Leave a comment