Posts by Michelle Horn • 131 points
7 posts
-
2
votes1
answer77
viewsA: Successful alert for the user with Vue
axios.get(`/atas/${this.id}/ativar`) .then((res) => { eventHub.$emit('removeCard', this.id); alert('Deu certo'); });
vue.jsanswered Michelle Horn 131 -
1
votes1
answer164
viewsA: Vuejs Condition of Classes
Creates a die in the computed kind of: isOpen: function() { if (this.$els.li.className.match(/\active\b/)) { return true; } } and in the template: <ul :class="isOpen ? 'open': ''"> <li…
-
1
votes1
answer85
viewsA: Expression error in Vue.js with filterBy
the documentation states that this filter only works with v-repeat
vue.jsanswered Michelle Horn 131 -
3
votes1
answer45
viewsA: Static element with vuerouter
Voce can use the v-if="this.$route.name.match('route-name')", in this case, the block will only appear if the route has the same name as the current route.
-
2
votes3
answers596
viewsA: Vue component Mask is only applied when stirring the field
as a directive, Vuethemask Mask is called by mask="".. Also, there’s no reason to use quotes and then single quotes inside.. put this way in the component: mask="(##) #####-####"…
-
0
votes1
answer43
viewsA: b-table of the Vue boostrap
according to the documentation, you can use the props Fields. In the component vc would put :Fields="Fields" and then in the date of the component vc populate the fields with an array containing a…
vue.jsanswered Michelle Horn 131 -
1
votes1
answer207
viewsA: Problems logging in with Vue, Vuex, Xios and Laravel
Voce is using getItem, it is to capture the data and not write.. try to sessionStorage.setItem('chave', 'valor'); put the chave as 'user' and in the value vc puts the object with the user data :D…