Most viewed "vue.js-2" questions
83 questions
Sort by count of
-
0
votes2
answers6612
viewsProblems using v-Mask (Vue.JS)
I wanted to use a mask on some componentized inputs, but it doesn’t work, it follows the respective code snippets: in main.js we have: import VueMask from 'v-mask' Vue.use(VueMask); in my component,…
-
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
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',…
-
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) {…
-
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…
-
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
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
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 =…
-
-1
votes1
answer782
viewsHow to make v-money recognize zeros after the comma
I’m using v-money for prices, if in the database there is no 0 at the end as for example: 10.99, when searching the value and playing in the input, the value appears normally. Now if in the database…
-
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 8 years ago David Vinicius 618 -
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
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 8 years, 1 month ago Guilherme Alves 11 -
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
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…
-
0
votes1
answer567
views[Vue warn]: Unknown custom element: <v-col> (vuetify)
I’m a beginner in Vue.js and I’m trying to create a search application. I’m using the vuetify library and I’m having the following error: [Vue warn]: Unknown custom element: v-col - Did you Register…
-
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
answer472
viewsUpdate v-for in Vue.js
Hey guys, I’m having a slight problem here on my Vue.js. I have a variable user.activeItems, in HTML I give a v-for on this variable, to show the active items, as follows: <div…
-
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:…
-
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();…
-
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…
-
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 6 years, 5 months ago David Martins 23 -
0
votes2
answers402
viewsHow to make a mockery (consult only after you finish typing in the input) in VUEJS?
I come from Angularjs and, at certain times, when I need to make a query according to what the user is searching, I use ng-change, but I agree with him ng-model-options="{debounce: 500}". This makes…
-
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…
-
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…
-
0
votes1
answer382
viewsHow to save form data to a global obj using Vuex Vue.js with Laravel 5.8
Good guys, in my first component I have this obj ready. export default { data: () => ({ valid: false, campo: { endereco: '', numero: '', bairro: '', cep: '', cidade: '', estado: '', complemento:…
-
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
answer322
viewsFilter data using v-select in Vue
I have an API that returns me all registered users on the system, I need to implement a form of search where I can filter these users by sex. I have a field (v-select) where we can choose male or…
-
0
votes1
answer303
viewsHow to use more than 1 dynamic class with vuejs?
Good morning/afternoon / evening I have a doubt, I have a project where I have a dynamic class with ternary operators, I need to add another dynamic class to bring an extra class in this whole joke,…
-
0
votes1
answer285
viewsProblem including JS file in project with Vuejs 2
I have the following problem: By including a local file . js in my project with Vuejs I get the following error message. Follow my structure and code: I realized that if you include an external…
-
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…
-
0
votes1
answer253
viewsTable with multiple Radio Button - recover Vue values
I have the following screen: Who are basically disciplines with their classes. I’m using Vuejs, where I have an object with JSON with a list Disciplines containing a list of id classes. The screen…
-
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…
-
-2
votes1
answer227
viewsReactivity of Objects in Vuejs (vuex)
I am making an application where I store the user profile data in the vuex store, and there is the option to update this data. the problem is that when I update via mutations as indicated, and…
-
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
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
votes0
answers195
viewsHow to log a component imported with Vue.js correctly?
error: Unknown custom element: - Did you Register the Component correctly? For recursive Components, make sure to provide the "name" option I am trying to register a component containing a form but…
-
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…
-
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…
-
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
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…
-
0
votes2
answers160
viewsDirectives
How to build a Custom Directive that works like v-on? Briefly the directive needs to have the same functionality as the v-on:click I tried things like: //App.vue: <h1…
-
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…
-
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
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…
-
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
answer144
viewsDefinition of props in Vue.js rendering function
The Vue.js possesses funções de renderização and various ways to define where the component will be rendered, such as the use of el, template and the function render. The render function has…
-
0
votes1
answer142
viewsHow to "bind" a Vue.js variable without using the keys
I’m starting to work now with Laravel 5 + Vue.js and I’m having problems with loading my page. My Vue variables are exposed at startup and are only rendered after javascript loads. My example is the…
-
-1
votes1
answer141
viewsFilter an array with Vue
Great day to you all! I’m picking up to a filter where I don’t understand the pq is returning the following error on the console: "Vue.runtime.esm.js? 2b0e:619 [Vue warn]: Error in render:…
-
0
votes1
answer140
viewsCalling VUE function through another Iframe
I made a form where an action is executed in iframe, i need somehow, this file I’m opening in iframe call my function in VUE, I’m posting my code below. new Vue({ el:"#app", data : { teste : '', },…
-
0
votes1
answer139
viewsNuxt 2 how to serve the Assets correctly in Firebase Host
I’m building a new ssr application using Nuxt 2 and Firebase, I’m trying to deploy my application using Firebase Hosting and Cloud Functions as well as this video however the problem, the video is…