[Vuejs]-Access to props inside javascript

0👍

Ok I found why I couldn’t get my value, thanks to @Saurabh comment, he reminds me that I get my props from an async way, so I had to set a watcher when my props change, like this :

  watch: {
    userId: function () {
      this.getDepenses()
    }
  },

Leave a comment