Questions tagged as 'vue.js'

3
answers

What are the main differences between Angular.js React.js and Vue.js?

In a SPA project that will soon be used in a mobile app as well, I need to know the key differences in deciding which framework to focus on.     
asked by 01.04.2017 / 04:42
3
answers

Is it correct to write CSS with Javascript?

I see a focus on javascript frameworks, to write css directly in javascript, example ... new Vue({ el : "#style", data : { ctn : { display: "flex", alignItems: "center", justifyContent: "center", flex...
asked by 26.10.2017 / 20:18
1
answer

Reuse / reuse of component with reactivity in Vue

I'm trying to reuse components in VueJS , one of my attempts is to reuse forms, for example: I have in several forms of my site the login and password fields, so I created a component called userform : <template> <se...
asked by 22.01.2017 / 03:42
1
answer

How to avoid repetition when listening for changes in properties of a component?

When I need to react to changes in N properties for the same callback I give myself to use something like this: watch: { propriedadeA(){ this.reagir(); }, propriedadeB(){ this.reagir(); }, propriedadeC(){...
asked by 13.09.2017 / 12:53
2
answers

Vue Router: prevent user from accessing the login route if it is already logged in

I'm configuring the routes of my application in Vue.js , initially everything is OK, after logging in the user is redirected to dashboard , now my question is how can I prevent the user from accessing the " /logi n" (again) route a...
asked by 17.02.2017 / 20:12
2
answers

What are slots and "scoped slots" in Vue.js?

In Vue.js we can pass descendants to a component as follows: <meu-componente> <div>Um descendente</div> <div>Outro descendente</div> </meu-componente> How does this work and what is the relationsh...
asked by 25.08.2017 / 21:28
1
answer

What is reactivity in JavaScript?

I see frameworks as Angular, Vue, React, the concept of reactivity . I'm totally uninvolved in the subject, and from what little I know, the concept of reactive programming is basically the realization of asynchronous data flow. A variable...
asked by 10.11.2017 / 13:02
1
answer

VueJS: how to check all the checks and count their amount?

The problem is as follows: I have several lists with a title, where it serves as a "select all" but it should only select the checkboxes that are its "siblings". But I can not check them in the "select all" of each list and update the fina...
asked by 17.10.2017 / 18:43
1
answer

What is the purpose of the nextTick () method?

I've used the nextTick() method a few times, especially when I need to change something in the DOM, but I did not quite understand what it was for. Can anyone give me examples of their correct purpose? Here is an example of using the...
asked by 23.10.2018 / 22:34
1
answer

What is the difference between computed properties and the methods of an instance of Vue.js?

I'm trying to understand the difference between the two, when using one or the other, I know there are also watchers, what is the correct use of them?     
asked by 14.08.2017 / 17:09