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
-
2
votes3
answers63
viewsVue JS - How to display a list interspersed between property and value?
I have this list as an object: let app = new Vue({ el:'#app', data:{ lista:{ nome: 'Nome Completo', email: '[email protected]', cpf: 'xxx.xxx.xxx-xx', rg: 'x.xxx.xxx', tel: '(xx) x xxxx-xxxx' } } });…
-
2
votes1
answer80
viewsError redirecting user to login page with Vue 3
good afternoon, I am getting the following error while trying to redirect the user to the login page, on Vue js 3 This page checks if the user has a token to see if they are logged in. If they are…
-
2
votes1
answer166
viewsChange background color when typing a color via v-bind
I am watching a video lesson of Vuejs and did not understand the link of CSS with the class and how the background turns blue or purple according to what is typed. Example: new Vue({ el: '#app',…
-
2
votes1
answer70
viewsVuejs: How do I read a src attribute that is already within a v-html directive?
The contents contained in the string videosOnScreen is transformed into HTML by the directive v-html, but cannot find the path of the attribute src. Is there any way this attribute can be read?…
-
2
votes1
answer34
viewsRecover a component generated by a for loop in Vuejs
I’m starting in Vuejs and have no idea how I can recover an element (if it were in pure JS would only store in a const and dp call by id), I’m trying to make a game Monty Hall, and what I want to do…
-
1
votes1
answer159
viewsProblems with Assets from a JSON - Vuejs with Webpack
Talk, you guys, baby? Can anyone give me a help? I have the following folder structure: As my application is simple, I am not doing anything connected to bank, I will directly consume a JSON file…
-
1
votes2
answers1305
viewsVuejs: How to display a value in the dynamic modal input with v-model or v-bind:value
There is a list where return all active users on the system and in the same there is a button to Edit User, when I click on this option, I open a modal, capture the user id and perform a query of…
-
1
votes1
answer191
viewsHow to pass a dynamic argument to a method in Vue.js?
I need to call a v-on:click event with a dynamic argument. I tried in the most logical way: v-on:click="my_method({{value}})". Doesn’t work.
-
1
votes1
answer36
viewsDo not reassemble columns on the bootstrap grid
How to get the grid boxes to be displayed correctly without plumbing. Whereas their height will be variable as the content is dynamic. new Vue({ el: "#app", data: { title: 'Boxes dinamicos sem…
-
1
votes0
answers98
viewsAccess VUE data model by another script
Well I have a data model with the following information in vuejs graficos: { data : { labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], series: [ [5, 2, 4, 2, 0] ] }, options : { width: 600, height: 300…
-
1
votes0
answers37
viewsVue $http.get loads page plus returns NULL
I’m trying to consume an API and $http.get only returns NULL. I call a PHP that returns a json What a fool I’m doing? new Vue({ el:'#beerApp', data:{ cervejarias: null }, methods:{ getChamados:…
-
1
votes0
answers74
viewsV-Model giving problem in Components
Hello, I’m new with Vuejs and I’m doing a chat following a tutorial. In the tutorial the teacher inserts a v-model inside an input into a component and all right. When I do this, the component is…
-
1
votes1
answer1526
viewsHow do I use vueJS with Gulp?
I’m working on a little project using Gulp and wanted to learn a little more than vue.js then I want to use in the project, but I can’t find anything clear (for me) on the internet of how to…
-
1
votes1
answer260
viewsHow to turn v-on:click="Sync" into an automatic trigger when opening html
Explanation of the problem Have this javascript in html I call v-on:click="sync" it updates the news list, but this news list until I click Sync it goes blank, so I’m looking for a way to make the…
-
1
votes1
answer801
viewsInsert an element into an array that contains an object
Hello, I would like to know how to insert an element inside an object of an array, in this case, when I add with the code below, the element is inserted as another index: this.array = [];…
-
1
votes1
answer360
viewsHow to update data from a Vue 2 directive?
How can I perform the following procedure to update data from a directive in Vue. var select = Vue.directive('select', { twoWay: true, bind: function(el, binding, vnode){ // Como acessar op ????? //…
-
1
votes1
answer6638
viewsDownload using the Xios?
I am using Axios to perform my application requests, and in one of the GET requests it returns a PDF file. When I do the GET request by Postman it opens a window to choose where to save the file,…
-
1
votes2
answers149
viewsPerform calculations between inputs
I’m using a plugin that when I click on the button + it multiplies the value. It works perfectly but the calculation is only done inside the <span id="price" class="amount"></span> and…
javascript jquery angularjs vue.js javascript-eventsasked 7 years, 8 months ago Shaolin Fantastic 546 -
1
votes2
answers620
viewsHow to integrate ASP.NET MVC Core with Vue.js?
I have a project that requires the client side to use Vue.js to render the application views, but on the server side ASP.NET MVC Core is intended to validate all business rules. Is there any way to…
-
1
votes0
answers89
viewsTypes of Vuex using getters
import * as types from './types' export default { // -=-=-==- OK -=-=-=-== // //return first item first(state, getters){ return getters.list[0]; }, //retorn all itens from my api list: state => {…
-
1
votes2
answers1022
viewsHow to update a v-for variable in Vue JS?
I have the following code in my view: <div> <div v-for="(solicitacao, $index) in solicitacoes"> <div class="box-image" :class="{'box-rejected' : solicitacao.$$reprovado}"> <div…
-
1
votes1
answer2495
viewsDate format configuration in Vuejs/Quasar Framework
I have a field for inserting the date of birth, and I want the insertion result to be formatted in 'DD-MM-YYYY'. I managed to have the date displayed in the desired format input, but when I send the…
-
1
votes2
answers1592
viewsVuejs: How to share data from one component to another?
I have two separate components and need that when clicking on a button, it modifies the variable of another component. For example I have the following component: var componenteFiltroBusca = new…
-
1
votes3
answers644
viewsHow to add a css class to an element according to the page accessed in Vue.js
Good morning Gentlemen. I’m having a little difficulty with Vue.js, I want to understand how to put the class "active" in an element li according to the current active route. I have a menu that is…
-
1
votes3
answers640
viewsHow to use anchor in vuejs/Vue-Loader?
I’m creating a project with vuejs webpack (Vue-Loader) and recently I came across a problem, I can’t anchor any tag, because Vue understands that when using the hash #, you want to direct to a…
-
1
votes3
answers2145
viewsVuejs: Is it possible to use a condition to enable a @click?
I have a disabled button, which depends on other fields to get enabled: <button class="actAplicarTodosFiltros" disabled="disabled">Aplicar</button> So I have tabs that make some changes…
-
1
votes1
answer67
viewsSession library for Nodejs/Hapijs?
I’m making an email application and I got to the part where I need to do the session and login part, but I’ve never done this before, I’m using Hapijs as a server and I’d like to know which are the…
-
1
votes1
answer1254
viewsVuejs pass object as props
I wonder how I can pass a javascript object as a component property Vue.js. I’m trying this way, but it’s not working: component: Vue.component('web-nav', { props: ['navProps'], data: function() {…
-
1
votes1
answer39
viewsHow to pass value from service to var?
I have a REST service to seek the visitor’s values. However, I cannot manipulate the values coming from the service outside the Promise. export default{ data(){ return{ visitor: {} } } } created(){…
-
1
votes1
answer29
viewsSet a default value in Binding.value Vue Directive
People are creating a simple Directive and wanted to know how to put a value if the binding.value for undefined in a simpler way, much like the Vue Component in which you can set the defalut value?…
vue.jsasked 7 years ago iLeonardo Carvalho 561 -
1
votes1
answer222
viewsnpm install 404 error
I started a course of Vue.js and I am installing a feature by Node.js but I am having problems with the npm command, take a look; What is wrong with my Ode on this command below? npm install vue…
-
1
votes1
answer164
viewsVuejs Condition of Classes
I have a menu and wanted to know if there is a way I make a condition of add a class depending on the child class. For example: <ul :class="{ 'open' : TemClasseNoFilho }"> <li v-for="item…
-
1
votes1
answer1032
viewsRecover select value with Vuejs
i have a form and would like in the field (which is a select) to return (selected) the value previously marked. Ex: if my selected is empty, the select will display values normally (1, 2, 3, 4). If,…
-
1
votes2
answers788
viewsJspdf error with Vuejs
I’m having a problem trying to use Jspdf with Vuejs. I picked up a tutorial on the internet (this one) which shows how to print all the contents of a div (for it was not succeeding. However, in the…
-
1
votes1
answer68
viewsVuejs/Javascript - components and variables
Hello! I have a restAPI that returns me a array of names, I wanted to know how I do to get them as componentes. Below you can understand better: import produtos from './produtos' import artigos from…
-
1
votes0
answers47
viewsCapture values followed by a textarea in the same function
I’m developing a console with HTML5 + Vue to streamline some simple commands. The inserted command comes through a textarea with v-model="cmd" v-on:keyup.enter="consoleMode()". I’m using Else if…
-
1
votes1
answer83
viewsDoubt about Vue.js extended layout
My doubt is very extensive and I believe that with a video on Youtube it is easier to understand my problem: My problem This is my repository without the changes: My repository Error image; Base.…
-
1
votes1
answer55
viewsDynamic Import with Webpack
In an application Vuejs template Webpack, I need to import a number of SVG’s according to a user’s parameters. The SVG’s are fixed files, but are dynamically loaded into the application. If I import…
-
1
votes2
answers2359
viewsAvoid form Ubmit by pressing the Enter key
I have a input in the Vuejs that is inside a form and when I press enter I don’t want the form is submitted. Together with Vuejs I am using Quasar and I was able to assign the function call only in…
-
1
votes1
answer119
viewsProblem with events in Vuejs 2
I found a code a while back and modified it in pure javascript. It worked fine. But now I have to do something similar to what he does in Vue. The problem is that I’m kind of new in Vue and I have…
-
1
votes1
answer44
viewsMultiple components in Vue.use
I’m using these components in my code Vue.use(Toaster, {timeout: 5000}) Vue.use(VueAlert) Vue.use(VueSweetAlert) Is there any way I can connect these three into one Vue.use ? Something like that…
-
1
votes1
answer4781
viewsVue.js with pure PHP
I’m starting at the Vue.js and now I’m in a moment that I can not do. I need for example connect in PHP and select the Mysql to bring some data. I do not know how to proceed in Vue.js, I’ll put the…
-
1
votes0
answers320
viewsUpdate value of Vuejs page
I ended up bumping into a problem I’m having trouble solving. When creating a page detalhes, I call her using this.$router.push({name: 'Detalhes'}) And step one parameter this.$router.push({name:…
-
1
votes0
answers106
viewsProblems with Vue in an Laravel project
This is my project. http://laravel-vue-axios.herokuapp.com/ He is able to save, delete and edit, but when I do the actions I cannot perform the automatic refresh in the browser, I don’t even know…
-
1
votes1
answer195
viewsUpload Laravel + Vue.js
I need to upload some files, but there is a detail, will be mounted a table as in the figure below, I can already add in the table itself, but at the time of the upload I do not have the slightest…
-
1
votes1
answer349
viewsReplace com Vuejs
Next, I’m making a Filter to search some words passed by parameters and check if it exists in the text. The words that are equal I will have to highlight them with a bold and a background. Only,…
-
1
votes1
answer586
viewsCreate component to be used via npm
I started working a lot with vue and I started to use it in all projects in the company where I work. And with that, I ended up creating some componentes, in general autocomplete, I know there are…
-
1
votes1
answer14539
viewsnpm ERR! Missing script: start
I have this error when trying to start Vue-cli. The installation ran smoothly: villas:vue villas$ npm start npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm…
-
1
votes1
answer594
viewsRedirect after receiving Replay from server?
I have an application that the front end is Vuejs/Quasar and the server is hapiJS. I am working on the login part and would like to know how to redirect the page after receiving confirmation from…
-
1
votes1
answer526
viewsPass input parameter to function
I ran into a problem, to pass the value of my input to my function without using v-model. I know it works that way <Input @click="func" /> func(val){ alert(val) } But then I can’t pass another…