[Vuejs]-Plugin function undefined in nuxt.js

0👍

Change mounted function to be Regular function. don’t use ES-6 syntax.

instead of:

mounted: () => {
  console.log(this.$ProgramApi.agenda()); // this will refer to mounted instance
},

use:

mounted() {
  console.log(this.$ProgramApi.agenda()); // this will refer to vue instance
},

Leave a comment