Questions tagged as 'vue.js'

1
answer

Reactivity in event

I'm having a problem changing the render state of an element with vue js. The same was generated with for . The goal is to have box-body of the mini panel displayed by clicking button . but the v-if state is changed onl...
asked by 27.04.2018 / 11:09
1
answer

Start Project Vue from existing template

Is it possible to start a Vue project from an existing template? I want to create a template with all the necessary dependencies and initial settings (as well as pages and etc), so that always, when making a new project, I can start from...
asked by 24.04.2018 / 19:50
2
answers

How do I access a list within a list in VueJs?

I'm having difficulty listing the values of a Json, but the result of it is an array inside an array as you can see below; { "status": true, "valores": { "USD": { "nome": "D\u00f3lar", "valor": 3.2789,...
asked by 19.03.2018 / 10:49
1
answer

Add Class to elements that are not Hover

I have a list of links, and I need to add the class "fade" on all elements that are not in Hover. new Vue({ el: "#app", data: { active: false }, methods: { mouseOver: function () { console.log(this.active)...
asked by 17.04.2018 / 22:36
1
answer

VueJS2 Policy Update

I have a problem in my Money directive, it works like this: I make an Axios call to my API, the API brings me a value and I format it to the default BR. But now I had to create a atualizar button that is bringing me this formatting proble...
asked by 02.04.2018 / 22:31
1
answer

How to use emit and computed / watch

I'm new to VueJS and started to develop a project to study a time release and time worked spreadsheet. I'm using the Laravel 5.5 project with Vuejs 2 and MomentJS to calculate the differences. But I could not figure out how to use the emit...
asked by 22.02.2018 / 03:19
1
answer

Copy text to clipboard using VueJS?

In the return of a request the digitable line of a ticket is coming and I assign this digitable line to a variable, but what I want to do now is to copy that digitable line to the clipboard, so that the user can paste (ctrl + V) anywhere else....
asked by 09.02.2018 / 18:11
1
answer

How to use variables dynamically in vue

I would like to know how to use propriedade of a Objeto in the component concatenate with string and become the name of the class in v-for My object: data(){ return{ user: {name:""} } } I would like m...
asked by 13.03.2018 / 21:48
1
answer

Update child component method VueJS

I'm trying to update a method of a child component, but so far I have had no solution, my question is as follows. Within Header.vue , I display the pending hours <span> <b>{{Hours}}</b> horas pendentes </span&...
asked by 13.03.2018 / 14:40
2
answers

Style within Vue.component

The question is quite simple: Can I insert CSS / SCSS style within a Vue.component () , to stay within the scope of the component? Something like const Color = Vue.component('Color', { props: ['row'], template: '<div class="ba...
asked by 09.01.2018 / 12:38