Posts by Philipe Nascimento • 19 points
2 posts
-
2
votes2
answers145
viewsA: Vue - instance variables does not work
PROBLEM AND SOLUTION I found that the problem is the standard ES6 for function declaration: Works: mounted() { console.log(this.$storage) } mounted: function() { console.log(this.$storage) } Doesn’t…
vue.jsanswered Philipe Nascimento 19 -
-1
votes2
answers145
viewsQ: Vue - instance variables does not work
I am migrating my project to Vue-cli and the instance variables are not working: main.js Vue.$storage = Vue.prototype.$storage = new SecureLs({encodingType: 'rc4', isCompression: true,…
vue.jsasked Philipe Nascimento 19