Posts by Fagner Araujo • 1 point
3 posts
-
0
votes2
answers538
viewsA: How to pass parameters from Component to vuex in an Laravel and vuejs project?
The menicon error is in the syntax. There is no Cath, the correct is catch. editForm() { this.$store.dispatch('editCategories',this.id,{name: this.category.name}) .then() .cath() }…
-
0
votes2
answers276
viewsA: Doubts about the import and overall use of Axios in Vuejs
That way you would be installing Axios as a plugin. It would make it easier to access it within a Component using a this.$http.get() but I believe that for a somewhat more comprehensive approach,…
-
0
votes2
answers607
viewsA: Switch Button with Vuejs
The way you’re talking, sounds more like a case for v-if or v-show. <button v-if="metodo === 'contratar'" @click="mudarMetodo('ativar')">Contratar</button> <button v-if="metodo ===…