In a Vue.js Project, I am not able to access a property => this.ws_files from a function inside methods. The property is accessible in mounted(), but not in methods.
Below is snippet of the code:
export default {
name: 'file-list',
data () {
return {
title: pageName,
ws_files: "AB"
}
},
mounted () {
this.getFolderInfo('ZEST/ZEST Negoce/',10)
},
methods: {
getFolderInfo: (folderName,maxKeys) => {
this.ws_files = "Sant"
}
}
}