[Vuejs]-How to change the value of a prop (or data) of a component, from OUTSIDE the component?

0👍

You are initializing your data item to the value from the store:

  data () {
    return {
      progress: store.state.progress
    }
  }

Changes to the store will not propagate to your data item. You could eliminate the data item and just use store.state.progress where you need it, or you could create an computed that returns its value if you want a local single-name handle for it.

Leave a comment