Most voted "vue.js-2" questions
83 questions
Sort by count of
-
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:…
-
3
votes2
answers611
viewsHow do I filter a list in Vue with response ignoring accents and uppercase/lowercase?
I’m making a list filter by name, it works, but if I have a name registered as Gor, the filter does not work when I type. computed: { filtered: function () { const search = this.configs.search const…
-
3
votes1
answer64
viewsMultiple list Component calls
I have a basic user list with 4 columns (NAME | EMAIL | PHONE | OPTIONS). In the column options, for each record of the table I have an edit and remove button. I would like each edit button to…
-
3
votes2
answers164
viewsHow to conditional disable a link with bind href in Vue.js?
I have a project where will have an area dynamically populated with Vue.js. But items should be clickable or not depending on the level of each item. I know in Vue, you can use the v-if, but…
-
3
votes1
answer591
viewsHow to delete an item from an object using an internal ID (Vue-2)
I have an object with the following format: [ { "id":1, "name":"exemplo1", "email":"exemplo1" }, { "id":2, "name":"exemplo2", "email":"exemplo2" } ] I need to delete an item from this object using…
-
3
votes1
answer51
viewsFailed to remove array element
I am creating a page that will filter some suggestions, where the user can vote on which are most interesting to him. I am dividing this screen into 3 tabs [Most Voted], [Newest] and [My Votes] When…
-
2
votes1
answer1709
viewsVariables in App.Vue
I have inside the App file.See the client name variable {{nomeCliente}} I’m creating a Function within the.Ve App to fill in the variable this.$eventHub.$on('mostrarNome', function(value) {…
-
2
votes2
answers419
viewsPerformance types of Eventbus in Vuejs
In some projects I am performing a maintenance, there is the use of Global eventbus. In the case, usually had seen it as follows: Event-bus.js import Vue from 'vue'; const EventBus = new Vue();…
-
2
votes0
answers44
viewsWhy extend the Vue.js constructor
I’m studying Vue.js and I came across the method extend which in the documentation says it provides a subclass of the Vue’s base builder. I can understand that, but I couldn’t find a practical…
-
2
votes1
answer88
viewsClasses, Mixins or the Two?
Currently in my projects I started using Classes in JS, especially in cases related to a specific element, for example the User, all requests HTTP or methods related to it I usually isolate in two…
-
2
votes1
answer410
viewsVuejs 2.0 v-model conflicting with v-bind:value on different elements
I have a form with some inputs that has v-model and others with v-bind:value receiving an initial value for the 'date'. Every time I type something into a v-model field it resets the value of the…
vue.js-2asked 5 years, 2 months ago David Martins 23 -
1
votes2
answers398
viewsDifficulty to remove item from inverted list in Vue
I’m picking up at the time of using list in Vue. I display on the screen a list reversed by a computed. I need to display it upside down so when I add an item it shows up on top. Only the way I did…
-
1
votes2
answers614
viewsHide a v-for element with v-show
I need to hide an element of v-for with v-show. I have a list that populates a menu and I need to hide a certain element, someone can give me a light?
vue.js-2asked 6 years, 10 months ago Guilherme Alves 11 -
1
votes1
answer780
viewsPick up keystroke event with Vuejs
How can I catch a key event with Vue? I’ve seen some examples on the site like: <input @keyup.enter="submit"> But what I would like is some kind of Systener where if the user pressed a key…
vue.js-2asked 6 years, 9 months ago David Vinicius 618 -
1
votes1
answer254
viewsDropdown menu with v-if vuejs
How to add an effect dropdown to this vertical menu, so that when placing the mouse on top it opens the ul daughter if she exists. I thought I’d do it with v-if by clicking on li Dad, but I don’t…
-
1
votes1
answer2391
viewsVue 2: Take input value without using v-model
I’m already detecting when the pressure is enter in the input, how can I make to catch the current value that input too? Can’t be with v-model, because I need to leave a value default, as shown in…
-
1
votes1
answer113
viewsConvert Camelcase strings to kebab-case
I have a list of buttons... <button @click="chamaEstilo($event)" :data-el="index" class="buttonEstilo" v-for="(item, index) in filteredList" :key="index" v-if="verificaRestricao(item)" >…
-
1
votes2
answers1856
viewsClear VUE v-model data at once
I have an instance of Vue in which I take values from a form to send by ajax, I would like to clean the data saved by the v-models at once after sending, this is possible? new Vue({ el: '#app',…
-
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
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
answer181
viewsI’m not getting to bind with image
Someone could explain to me why I’m not able to render the image on the screen. I’m using the Vue-cli and the image is in the folder Assets inside the briefcase src normal, but when I call her in…
-
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
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
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
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
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
answer359
viewsError generating APK using Quasar framework
I am trying to generate the APK of an application made with Quasar Framework, but I get the following error: $ quasar build -m cordova -T android Checking Java JDK and Android SDK versions…
-
1
votes1
answer114
viewsHow to insert a Tooltip into an input field
The user of my system, uses notebook and inputs, not of a form but of filter, do not appear 100% on the screen of it, but it is normal, is responsive to some extent the project I have already walked…
-
1
votes3
answers147
viewsDelete copied array item without deleting the item from its source - Vuejs
I would like to clone a list of numbers and be able to manipulate that cloned list without changing the source, but in the following situation when I delete the item from the cloned array it deletes…
-
1
votes1
answer231
viewsUpload image with Vue.js + . net core 3.0
I’m trying to upload an image, but the image always comes as null on my controller This is my Viewmodel which I receive the image: public class UpdateViewModel { [Required(ErrorMessage = "Nome é um…
-
0
votes1
answer86
viewsVue Compile when inserting into the DOM
I need to insert a compiled element into DOM, but it will be inserted in a random place, not in a predefined place as this documentation... var res = Vue.compile('<div><span>{{ msg…
-
0
votes2
answers1010
viewsHow to access one component within another?
I’m using the single file components, but I can’t access a component via another component, follow what I tried... <template> <div id="containerPrincipal" @click.stop="teste"> ...…
-
0
votes0
answers203
viewsVuejs Errors before the API loads
Is there any way I can ask for the Vuejs wait a while before dealing with the mistakes of the GIFT? I have for example a select who receives a v-model coming from the API, but as Vuejs loads the DOM…
-
0
votes2
answers102
viewsHow to import mixins into single file Components?
When trying to import mixin the following problem occurs Error in render: "Typeerror: Cannot read Property 'Components' of Undefined" But there is nothing abnormal in the Components because when…
-
0
votes0
answers91
viewsVuejs using father’s name tag on children
Follow an example input: <input name="TESTE" id="TESTE" placeholder="TESTE"> There’s a way I can do something like this so I don’t repeat the same name over and over again? Like this below:…
-
0
votes2
answers482
viewsStyle inside Vue.Component
The question is quite simple: I can insert CSS/SCSS style inside a Vue.(), to stay within the scope of the component? Something like const Color = Vue.component('Color', { props: ['row'], template:…
-
0
votes1
answer54
viewsProblems when accessing route in Windows to delete using Vue.js
I’m wanting to delete a record, but when accessing the route of the Laravel using the this. $http.delete gives me the error 419 Unknown status Lockable method public function destroy(Request…
-
0
votes1
answer834
viewsHow to deploy a vuejs (Browserify) application to Heroku?
I lifted the server with express, but using a schematic for the webpack because I found nothing related to browserify, follows the code... // server.js var express = require('express'); var path =…
-
0
votes1
answer183
viewsStarting a Project Vue 2
If I Want to do a project in Vue 2 which template or libraries would be interesting to use? Also which database, language, backend framework or else integer in Vue 2 with Node? State your opinions…
-
0
votes1
answer135
viewsInsert v-for data into css class in Vuejs2
<template v-for="d in data" > <a :key="d.id" class="zone{{d.value}}" href="{{d.code}}" >{{d.name}}</a> </template> This example just doesn’t work, how can I pass the values…
-
0
votes2
answers846
viewsImport Vue or other components into child components
I have an application in Vuejs2, in which I have an app.js, where I install Vue and make the Imports (Templates, plugins, etc). It turns out that some plugins/libs I can normally use inside child…
-
0
votes0
answers41
viewsReuse computed properties in Vuejs2
I have a calculation of totals of certain values in a pagination. This calculation is in a computed Property inserted into a component. The problem that I have another similar component that needs…
-
0
votes1
answer159
viewsVue component is not pushing in props
I’m creating a simple task list with Vue.js, doing so using separate components in files. One of the components has the function of adding an object to an array, which is a props, but there is the…
-
0
votes0
answers53
viewsPassing VUE Websockets variables
When I pass a variable this way in Vue, how do I recover it in PHP file? self.ws = new WebSocket('ws://localhost:9000?variavel=22'); $_GET ?
-
0
votes0
answers30
viewsComponent - UI for hierarchy
I need to put on a show treeview(but I don’t cling to treeview design) to display a hierarchical structure. I found nothing related to this in vuetify.
-
0
votes0
answers417
viewschange a property of an object array without looping
Good morning, I have an array of objects with several properties and one of them is the data property that I would like to convert. But I wonder if there’s any way to do it without using a loop. var…
-
0
votes1
answer146
viewsHow to import Vue2vis library?
I was trying to create a Timeline using Vis.js, using Vuejs 2 Adapter for Visjs,(https://github.com/alexcode/vue2vis) and the following error occurred :. It must be an import error.If anyone can…
-
0
votes1
answer216
viewsTrue return function returns false in a Vue expression
I created a method that serves to take the difference of a certain date with today’s date. With the code I put, it returns true. But when I use it within a computed value, it returns undefined. And…
-
0
votes1
answer396
viewsUsing variables dynamically in Vue
I would like to know how to use the propriedade of a Objeto to concatenate the string component and become the class name in the v-for My object: data(){ return{ user: {name:""} } } I wish my class…