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
-
1
votes2
answers73
viewsHow do I get Django to see the folders on my computer?
I need to make my system see folders that are outside your folder, to render the . pdfs that are inside those folders. I’m using a function in javascript (Vue.js) very simple, similar to this one:…
-
1
votes2
answers273
viewsError making API requests using Axios and Vue-Resource
It was consuming data from an API using XHR and was working very well, but there were some changes to the project and the need to use Vue arose. I tried to make the same requests using Axios and…
-
1
votes0
answers94
viewsI need to automatically insert the value of a cell in my last input text "Txtgesamt" after the input text "Schriftlich" keyup event
Take the cell value of a Javascript table [Help] I need to insert the node value automatically into the last input text "Gesamt" after entering any value from the first vertical column, within the…
-
1
votes1
answer199
viewsRedirect Vue.js
I am having the following scenario... I own a blog that when clicking on a link is redirected to a page in Vue.js. However when it is redirected the page breaks and returns error 404. Any / after…
-
1
votes1
answer366
viewsAccess prop in Vuejs method
I’m passing a array of objects to a component and within this component I try to access past values: <orders-list :orders="items"></orders-list> Component orders-list: <template>…
-
1
votes1
answer32
viewsHow to change Json object?
I’m trying to change the value of this object/property but returns the error of underfined even when I give console.log, I wanted to understand why I can’t get to it. - HTML <li v-for="item in…
-
1
votes2
answers130
viewsGet the selected item from iView’s Treeview
I need to get the reference of the selected item on TreeView of iView, I’ve tried with getSelectedNodes() but it seems that the method is not being used properly, and the documentation does not help…
-
1
votes0
answers510
viewsHow to pass a list of the child component to the parent component with Vue and Blade php
I have a problem, I need to access the list I create in the component selectprodutos and it persists, but the sending is made of another Component called formulario. They shall be arranged in the…
-
1
votes3
answers596
viewsVue component Mask is only applied when stirring the field
I’m learning to use vue and vuetify and I’m using a library to make fields with masks. The bike in question is Vue-Mask. When loading the component, the mask is not applied automatically unless I…
-
1
votes1
answer580
viewsHow to work with vueJS search method?
You realize the search is working perfectly: https://jsfiddle.net/wladyband/8qor5c0x/ I wanted you to only list the records when you typed something in search input, i know what place to make this…
-
1
votes1
answer41
viewsProblem in array ordering with numerical values in VUE?
I have the code below that I am using to sort an array, in field with the format String is working normally, as I must to sort numeric field? list_cob_frequencia() { var campo = 'nome_campo'; var…
-
1
votes1
answer183
viewsVuex. Good practice when using Mutation
I have a question about updating the state using the mutation, I usually see the use as follows: [ALGUM_MUTATION_TYPE] (state, novoArray) { state.array = novoArray } In this model, we overwrite the…
-
1
votes1
answer383
viewsUsing v-bind or v-model to update an input
I am using Vue.js in a project and would like your help. I’ll try to exemplify what I’m doing. I have 2 buttons, + and - when the user clicks on or the other I want to update my input with the…
-
1
votes1
answer143
viewsError in Vue.js filterBy
I’m using vue.js in my application and would like to filter information with the filterBy HTML <html> <head> <title>Vue Application</title> <link rel="stylesheet"…
vue.jsasked 6 years, 7 months ago Junior Vilas Boas 353 -
1
votes3
answers122
viewsError to popular Array with Vuejs + Firebase
I’m Dev Ror and I’m in my initial studies with Vuejs. To do so, I started creating a Todolist with Firebase for data persistence and a problem occurred to me. I created a function to return data…
-
1
votes1
answer601
viewsUpdate Vuejs son Component method
I’m trying to update a method of a child Component, but so far I have no solution, my question is the following. Within the Header.vue, I show the hours outstanding <span>…
-
1
votes0
answers65
viewsSyntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of the JSON data - Nodejs vueJS
I am using an application with vuejs and Node, and I need to get information through a . json, but when making the request I get the following error: Syntaxerror: JSON.parse: Unexpected Character at…
-
1
votes0
answers114
viewsCross-orgin with Laravel and vuejs
In my dilemma to publish my application I am facing some problems. I am making the front separate from the back. The frontend is in vuejs and the backend in Laravel (being only an API) On the server…
-
1
votes1
answer47
viewsHow do I create an element with Vue JS?
I made this very basic structure, a component with input, I wanted to click a button and generate one more in html. I try to search with appendchild or v-for or even v-html, but I’m not getting. let…
-
1
votes1
answer149
viewsPWA Installation Banner Configurations
I have a PWA that was developed using Vuejs and would like to know if it is possible to display the installation banner more than once, because currently it only questions once if the user wants to…
-
1
votes3
answers883
viewsAdd columns Vue.js
I need to add the two columns when one of them is changed, for example: if evaluation is changed the highest grade is in final grade, the same thing for oriented studies. var vm = new Vue({ el:…
-
1
votes1
answer3336
viewsVuejs - Popular select with API data
I am having problems to popular a select with the data I have as return of an API. I am using Vue. Follows codes: My HTML is like this: <select> <option value="" disabled…
-
1
votes0
answers17
viewsElements Events Rendered by the v-html Directive in Vue.js
How do I use an event in an element rendered by the v-html directive? The Vue (@event) events do not work.. I tried calling a function by onclick, but it is not found. <button onclick="test()"…
-
1
votes1
answer849
viewsHow to break lines using template string (ES6)?
I have a request for the back-end and your URL is very large. this .$http .get(`backoffice/usuarios/${this.id}/grupo/${this.grupo}/filial/${this.filial}/multinivel/${this.multinivel}`) .then(({ data…
javascript vue.js string-concatenation string-interpolationasked 6 years, 4 months ago guastallaigor 1,294 -
1
votes2
answers93
viewsFilter code elements
Speak, guys.. Blz? I have a question here. I am developing a chat app on Youtube, and say I send or receive a message as follows: msg = "Oi, fulano. Acesse esse <a href="link">link</a> e…
-
1
votes2
answers172
viewsTrying to make a for on a Vue-js object
I’m trying to loop (for) an array object in Vue-Js, (javascript) whose size is 11 (lenght=11) as below. But when I do: console.log(this.grouped) // Here it shows the object with length=11 for (var…
-
1
votes0
answers28
viewsContext of the Vue component is going wrong
I have a problem in the development of a project using in Vue2, when I look for the context of the component, it does not return me the "right" context, as for example the: $router that if you want…
-
1
votes1
answer89
viewsV-for access and display list
How do I bring Bullets items? Now I can access the sliders using v-for="item in slider" :key="item.id". On the part of <ul class="c-list-slider__bullets"> had to bring the Bullets items, as I…
-
1
votes0
answers94
views$. ajax Calling twice
I am developing an application with Vue.JS and Jquery. The call is being made like this in Vue: methods: { efetuarLogin: function (event) { event.stopPropagation(); $.ajax({ type: 'post',…
-
1
votes2
answers2045
viewsVue.js: How to format a value in a v-model?
I have the following problem, I need to format an input value, directly when the user is filling the field (@keypress or @input). When I use the method to format outside the input it works, but if I…
-
1
votes1
answer609
viewsSelect rows from a table with arrow keys
I am trying to develop a code to be able to navigate between the lines of an html table using the navigation arrows. what would be the best way? I need the selected line to stay with a different…
-
1
votes3
answers341
viewsDoubt in Vue computed method using Vuex
I have the following code below using Vue.js and Vuex. This code increments and decreases value as a counter. I would like to know what the method refers to count inside computed in Vue instance. I…
-
1
votes0
answers43
viewsLaravel + Passport + Vue - Not finding
Gentlemen, I’m starting to develop an application using Laravel’s Passport method, but it’s not finding the VUE library. follows an image with the return of the browser: js file that imports the VUE…
-
1
votes1
answer573
viewsHow to filter an object array using other object array?
I am trying to create a filter of recent products that are searched (when starting to type, it already appears the products found, as if it were a "like"), I have a global variable that is an array,…
-
1
votes1
answer283
viewsComputed v-for Vuejs
I have a v-for <div v-for="(m, ind) in arrayMeses" :key="ind" v-if="m" class="mes"> <table border="1" width="100%"> <tbody> <tr class="mes_title"> <td colspan="7"…
-
1
votes1
answer616
viewsInsert Component after rendering Vue.js
Hi, I’m learning how to use Vue.js and so far I’m learning how to create Components. However I am as a difficulty, I want to render a component after loading the page. I in my project will call…
-
1
votes1
answer45
viewsIt is not possible to use a v-for directive on passed prop to the Vue component
Follows the code: <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8" /> <title>Passagem de valores com VueJS</title> </head> <body>…
-
1
votes2
answers1466
viewsHow to select options from a select dynamically populated by Vue.js?
I have a select in a form, and the items in that select are dynamically populated by Vue.js. My problem is that when I open a register saved in the database for editing on this form, I need to make…
-
1
votes2
answers260
viewsWhy does Vue.js lose formatting when adding dynamic items? Is it possible to fix this?
I have a form, where the phone fields is dynamic so the user can add as many numbers as they want. But when I click the button to add new item, this created item appears without formatting. Not to…
-
1
votes1
answer423
viewsVUE v-for value filter
I have the following object array below. I need to list in a v-for only records where the variable parent be equal to 4, and I’m not getting it. Code: this.full_category_list = [ { id: 1, name:…
-
1
votes1
answer674
viewsPerform function when closing modal in Vue
I’m using Bootstrap 4 in a project with Vue; In modal, I have a video on a Youtube iframe; What I need to do is pause this video, when I close the modal, either by pressing the key Esc, or closing…
-
1
votes1
answer37
viewsHow to capture an event in a stub? [Vue-test-utils]
I’m trying to test an event similar to this: // template: <form @submit.prevent="save"></form> const save = jest.fn() const wrapper = mount(MyComponent, {methods: { save }})…
-
1
votes0
answers85
viewsLaravel (Blade) @lang in Vue components
Recently I started using Vuejs with Laravel and one of the first problems I faced was how to use the translations of Laravel (from the folder resource/lang ) in the Vue Components because in Blade…
-
1
votes2
answers48
viewsMethod opens all modals of the v-for elements
I have the following code snippet: <template v-for="(item, index) in listaProjetosModelos"> <tr :key="index"> <td class="text-center"> {{item.nome_projeto}} </td> <td…
-
1
votes1
answer92
viewsError while passing props with literal objects via v-bind="Object"
In Vue it is described in the documentation that you want to pass all properties of an object via props it is possible to pass it as follows # data do componente post: { title: 'Título da post',…
-
1
votes1
answer219
viewsFill modal with Vue js
The problem: I’m developing a site that has a feed with publications, each post has comments. When I click on the post comments button, I need to load a modal filled with comments and post. That…
-
1
votes0
answers159
viewsI’m trying to make a vertical multidimencional menu with Vue.js but the subitens aren’t showing up
This is the code I have so far: Vue.component('menu-item', { props: ['cmitens'], template: '#menu-item' }); new Vue({el: '#vuesadminmenu', data: { menuitens:…
-
1
votes1
answer73
viewsPassing properties by events
I have a component in which in it is just a modal which has the following header: <b-modal id="mdgroup" ref="mdgroup" size="lg" title="Nova categoria de receita" @ok="save" ok-title="Salvar"…
-
1
votes2
answers1154
viewsGenerate line break in Vuejs with v-if
I have a method that does a search in an api made in Arabic and returns me a json, I need to go through this json in a v-for and every 3 interactions a new Row is created. In PHP it would look…
-
1
votes1
answer180
viewsAdd Vuejs models with model.number
I was trying out vuejs and I ran into some difficulties, basically I was adding up 3 inputs and putting the result in a 4th. Problem, let’s assume I enter: t.value1 => 1 t.value1 => 0 ( need…