Most voted "vue.js" questions
Vue.js is a Javascript library that combines MVVM (Model-view-viewmodel) for building interactive interfaces.
Learn more…765 questions
Sort by count of
-
23
votes3
answers4443
viewsWhat are the main differences between Angular, React and Vue.js?
On a project SPA which will soon be used also in a mobile app, I need to know the main differences to decide which one framework should I specialize.
-
11
votes1
answer1726
viewsWhat is reactivity in Javascript?
I see in frameworks as Angular, Vue, React, the concept of reactivity. I’m totally naive on the subject, and as far as I know, the concept of reactive programming is basically performing…
-
9
votes1
answer1438
viewsReuse/reuse of reactive Vue component
I’m trying to repurpose components in Vuejs, one of my attempts is to reuse form fields, example: I have in several forms of my site the fields login and password, so I created a component called…
-
9
votes2
answers1552
viewsVue Router: prevent user from accessing login route if already logged in
I am configuring the routes of my application in Vue.js, initially this all OK, after logging in the user is redirected to the dashboard, now my question is how can I prevent the user from accessing…
-
9
votes3
answers291
viewsIs it correct to write CSS with Javascript?
I see a focus on javascript frameworks, to write the css directly in javascript, example... new Vue({ el : "#style", data : { ctn : { display: "flex", alignItems: "center", justifyContent: "center",…
-
8
votes1
answer2899
viewsWhat is the difference between computed properties and the methods of a Vue.js instance?
I am trying to understand the difference between the two, when using one or the other, I know that there are also the Watchers, which the correct use of them?
-
8
votes1
answer89
viewsHow to avoid repetition listening to changes in the properties of a component?
When I need to react to changes in N properties for the same callback I find myself wearing something like this: watch: { propriedadeA(){ this.reagir(); }, propriedadeB(){ this.reagir(); },…
-
7
votes2
answers1055
viewsWhat are slots and how do they work and "scoped slots" in Vue.js?
In Vue.js we can pass descendants to a component in the following way: <meu-componente> <div>Um descendente</div> <div>Outro descendente</div> </meu-componente>…
-
7
votes1
answer761
viewsVuejs: how to check all checks and count your quantity?
The problem is this: I have several lists with a title, where it serves as a "select all" but it should select only the checkboxes that are your "brothers". But I can’t check them in the "select…
-
6
votes1
answer177
viewsDifference between props and propsData
In the Vue.js we have how to insert data into components through props as follows. const hello = { template: '<div>{{ message }}', props: ['message'] }; new Vue({ el: '#app', data: { message:…
-
5
votes1
answer132
viewsHow does v-if work internally?
From what I’ve seen, using the v-if it is possible to show and hide an element through a condition, but it does not function as a toggle of Jquery, the v-if ends up removing the element and can…
-
5
votes1
answer648
viewsRestrict access to routes if you are not logged in to Vuejs
I’m developing a Dashboard and I doubted how to forbid access to rotas if they are not logados, with this, I thought of some solutions that would use localStorage, but none is a sure solution. What…
-
5
votes1
answer725
viewsVuejs: how to create a condition from one v-for to another
My problem is the following, I have two separate options boxes, where the list of the first box is loaded through a json. And I need to load the second box of options depending on the value selected…
-
5
votes2
answers330
viewsHow do I work with the Javascript console?
my project is generating this error: It is on account of that method: components: { VLayout: require('@/layouts/base'), }, How do I know what the result of VLayout using the console.log()? I have…
-
5
votes2
answers109
viewsHow to return to the previous state? (Vuex)
I am using Vuex to manage the states of my app and I am creating a forward button and a back, in case of my advance I use the function below: addUser() { const payload = { name: this.name, email:…
-
5
votes1
answer602
viewsMy Laravel project does not climb the server
I’m following the following online course on the youtube website: 1 - CRUD en LARAVEL & Vuejs - Webpack, Laravel Mix, NPM, Axios | Rimorsoft Online When I go up the server with the command yarn…
-
5
votes1
answer218
viewsWhat is the purpose of the nextTick() method?
I used the method nextTick() sometimes, especially when I need to change something in the DOM, however, I don’t understand exactly what its purpose is. Can anyone give me examples of their right…
-
5
votes2
answers157
viewsChange view/component but not URL
I’m working on a page 404, work well, I have the following: const router = new VueRouter({ routes: [ // ... { path: '*', component: NotFound, name: '404', meta: {page_title: '404 NOT FOUND'} }, ]…
-
4
votes3
answers9590
viewsHow to use Jquery with Vue.js?
During the implementation of Vue.js with sematic-ui, I have the following Jquery to open the modal: $('.ui.modal').modal('show'); how to make this integration in Vue?…
-
4
votes1
answer1553
viewsProblem with Vue-cli
Good afternoon, I did the global Vue-cli installation npm install -g Vue-cli When trying to start a project with the command Vue init webpack my-project the following error is shown Vue-cli…
-
4
votes1
answer104
viewsSearch engine Optimization em Meta Tags (Custom Elements)
How does the indexing of meta tags created in frameworks like Vue.js and others that use this functionality ? Google robots analyze what the browser interprets or the page source code ?…
-
4
votes1
answer408
viewsStarting with Vue.js with jQuery experience
I have experience with Javascript and jQuery and after a few years I decided to leave my comfort zone and meet new horizons. I took a quick walk through the Angular until arriving at Vue.js.. Is…
-
4
votes1
answer232
viewsHow to define a directive with Vue 2.0 that always does Binding as string
I’m starting now with Vue 2.0 and I’m creating directives so that I can manipulate the style of an element based on the content of that directive, so: Vue.directive('margin', function (el, binding)…
vue.jsasked 7 years, 8 months ago LeandroLuk 4,989 -
4
votes1
answer3926
viewsGenerate PDF Base64
I have an Laravel API that generates a PDF with Snappy dock. Works perfectly on Chrome linux but in windows that has the newest version of Chrome does not work, Chrome only opens a blank page. I get…
-
4
votes2
answers481
viewsPush() does not work in Vuejs?
I need to push() the data of Vuejs and make it add another object in the object array it has there. But when I click on the button I programmed for you to push() it just doesn’t. Follows code:…
-
4
votes2
answers674
viewsVuejs: how to create a condition for a v-model?
The problem is, I have a switch made with label and input checkbox and it has a default value that comes from date of my instance of Vue. var app = new Vue({ el: '#app', data: { slcModalidad: 0,…
-
4
votes2
answers3068
viewsConvert image to Base64 using Vuejs?
I have a <input type="file /> in Vuejs and when I select an image I want it to be converted into base64, because I will save the images in the database only in base64. What would be the method…
-
4
votes1
answer1055
viewsLaravel Project does not recognize my Javascript file
This is the structure of my project: As you can see in the image above the app.js file is in the folder Assets/js my app.js file looks like this; //var urlUsers =…
-
4
votes1
answer126
viewsv-for vuejs how to charge with timer
How do I get the list display to be paused, example wait 1 second display: 1 + 1 segundo 2 + 1 segundo 3 <div> <span v-for="n in 10">{{ n }} </span> </div> I used setTimeout…
vue.jsasked 5 years, 7 months ago Sidiclei F. Almeida 307 -
4
votes1
answer92
viewsWhat are Renderless Components?
What exactly is the utility of a Renderless component? Is there any real advantage to its use?
-
4
votes1
answer4066
viewsjwt authentication with vuejs
I’m a little confused with the authentication using jwt token, I have an application in vuejs + Vue-router, I don’t want to use vuex until I learn to do it without it (I don’t like to use what I…
-
4
votes1
answer251
viewsCalling a v-on by Javascript
Good people, I have a form that uses Vue, where every time I write something it makes a request in the backend to save the data with the v-on:change and when I leave the field he does the same thing…
-
3
votes2
answers135
viewsHow to delay the Vuejs v-model?
So that the information is changed when the field focus is out, and not as you type.
-
3
votes0
answers299
viewsVue-html-Loader (Webpack+Vue-Loader) does not find images in the root folder
I’m having trouble attaching the images contained in src of HTML5 within a route taken in the vue-router, for the Webpack does not find the image at the root of the project, see the structure: C:. |…
-
3
votes1
answer103
viewsHow to resolve html rendering with VUE?
am making a test with the wordpress Rest-api with Vue 2.x, and one of the returned attributes is as follows: "content": { "rendered": "<P>Bem-vindo ao WordPress. Esse é o seu primeiro post.…
-
3
votes1
answer2542
viewsHow to access Vue-Router dynamic route parameter
Using the Vue-router, I came across a problem, when I weigh a dynamic route, like { path: '/horario/:dia/:hora', component: Bar }, a problem happens, I can access the values of day and time on the…
-
3
votes1
answer479
viewsDropdown Menu (VUEJS/Javascript)
I’m trying to make a dropdown menu in Vue (I don’t want to use Bootstrap-Vue), so I created a isActiveDrop and defined how true, and every time I click the button to open it is set to false, so the…
-
3
votes1
answer374
viewsHow to get the value of el in the Vue?
I have the variable Vue: var appExemplo = new Vue({ el: "#appExemplo" }); How can I take the value that’s in el? That in this example would be #appExemplo. This.el return undefined.…
-
3
votes1
answer1179
viewsConvert data with Javascript?
How do I convert the date to this type 02 Ago 2017 for 02/08/2017? I’m using the vuejs-datepicker and when selecting it comes in this format, and the documentation says to do so...…
-
3
votes1
answer1168
viewsHow to pass headers on request with Vue.js 2
I need to pass the header Authorization which is located in the localStorage with the key to iflix-user-token, here is my code: getFilmes: function () { this.$http.get(Api.url + '/filme').then(…
-
3
votes1
answer2649
viewsDoing a Get using Axios (Vue.js)
I’m trying to pull up a list of names coming from a json (http://pokeapi.co/api/v2/pokemon) using the Xios but I don’t understand why I get the error Typeerror: Cannot set Property 'Pokemons' of…
-
3
votes0
answers176
viewsReverse slide transition, VUE JS
I’m developing a single page Aplication/app mobile, with VUE JS, I want to slide when switching pages, and I can already do it this way: transition name="slide" router-view transition But I wanted…
-
3
votes1
answer55
viewsCSS transition ignored when the array order in v-for changes
I’m making a component where I can drag other components vertically. When one component passes the other they must change places (on the X axis). What happens is that the element I’m dragging…
-
3
votes2
answers668
viewsString64 for image in Vuejs
I am receiving a database coded string 64 from the database and I want it to render as an image on the screen, my question is: Just set up the :src= with the variable that contains the string Base64…
-
3
votes2
answers815
viewsVuejs Router-View and Axios
I have a page with 2 structures using router-view. Menu and Content. the in my Menu I have a page called "Shops", on that page "Shops" has a table, I give a Axios.Get in my API and it returns me a…
-
3
votes1
answer505
viewsValue Vue-the-Mask conditional formatting
I’m trying to put a mask on - Vue-the-Mask <the-mask id="input1" v-model="ch_anual" type="text" :mask="['###:##', '#.###:##']" /> But you’re only taking the second mask if I put…
-
3
votes0
answers54
viewsSPA App in Vuejs - Use Session or not?
I’m starting with applications SPA (single page application) with VueJS. The question is about user control. I use session for this or not? For me to know how long the user was logged in, I record…
-
3
votes1
answer103
viewsDynamic slot value
I would like to know how I make the slots content dynamic, in this case with the name/value of the product. What I got is: // register modal component Vue.component('modal', { template: '#modal' })…
-
3
votes1
answer263
viewshref Laravel and Vue.js
I am doing the list of registered phonesetters and in each line there is an edit button, in href, I need to use Encrypt and pass id, but this id comes from Vue.js and Blade with the use of {{ }}…
-
3
votes1
answer2560
viewsHow to make several requests in parallel in Xios?
I have two urls to request: https://api.tuuris/cities and https://api.tuuris/expenses I would like to request both in parallel, currently I have done separately as in the code below: axios…