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
votes1
answer283
viewsWebpack + Nodejs import bootstrap + jquery
Hello folks from Stackoverflow, I have a Vuejs project already with Webpack. And I was importing the Jquery and Bootstrap libraries. I went to my Ode and used the commands npm install jquery…
-
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
votes1
answer10860
viewsHow to use async / await in get request using Vue+Axios?
I have the following code and would like to know how I can implement a Try / catch with async / await running the same function: import Vue from 'vue' import axios from 'axios' new Vue({ el: '#app',…
-
2
votes1
answer168
viewsProduction vs Development - WEBPACK
I would like to know the difference between the modes of "Development" and "Production" within Webpack4.
-
2
votes1
answer1113
viewsDOM manipulation with Vuejs and Jquery
I am using the pure materialize together with pure Vue to make my own admin template, that is, I managed the project by Vue init and put in index.html the links to the css and js of materialize. The…
-
2
votes1
answer389
viewsVuejs v-select Submit
I’m using the V-SELECT to make a select style Chosen. Well, it works! But when I use "ENTER" to insert new elements, it gives SUBMIT in the form. It’s like I give Submit only when I click the button…
-
2
votes1
answer596
viewsBrowse all properties of a Vuejs object
I am using Vuejs in a project and need to go through all the properties of the object associated with v-model. I know that if it was an array I could use u for, foreach, map and many other means of…
-
2
votes0
answers182
viewsTinymce with Vuejs
I’m trying to use the Tinymce with Vue, but so far unsuccessful, I have used several and none of them worked. <template> <div> <Button type="primary" @click="newPost =…
-
2
votes1
answer255
viewsHide component outside the router-Viewer
I’m using the Vue Rotuer to control the routes of my project, with this, I saw the need to use Navigation Guards. <script> export default{ beforeRouteEnter(to, from, next){…
-
2
votes1
answer509
viewsTransform Vue array into Json
I’m trying to pass on a textarea an array of Vue.js, and would like to turn it into json, what would be the best way to do that? new Vue({ el:"#app", data : { nome_da_variavel_array: '[{variavel :…
-
2
votes1
answer452
viewsPromise not returning value
My request is returning this to me: data: Promise Opening Chrome Developer Tools I see this: data: Promise __proto__:Promise [[PromiseStatus]]:"resolved" [[PromiseValue]]:"24/01/2016" Using Axios,…
-
2
votes1
answer627
viewsPass value to component with Vuejs
I have the following structure in my project 1. App.vue (Arquivo principal) 2. App.vue (outro arquivo que fica dentro da pasta paginas) 3. Dashboard.vue (filho do 2 app.vue) Within my second app.See…
-
2
votes3
answers873
viewsKey modal Event
Can you call a Vue bootstrap modal using a keyevent in VUEJS?? I don’t want any kind of button on the screen or inputs, I want to know if I can call the modal just by pressing a specific key. Such…
-
2
votes2
answers71
views'Delay' in the attribution/existence of properties in the Vue instance
I have the following code: Vue.component('child-comp', { template: '<p>Child here</p>', props: ['item'], methods: { alt: function(msg) { alert(msg); } } }); new Vue({ el: '#app', data()…
-
2
votes1
answer50
viewsCreate custom property in Javascript
Hello I want to do the following, I use data types to create customizable properties, but wanted to do as Vuejs it has v-model v-on among others this properties and created using Htmlelement?
-
2
votes0
answers164
viewsv-model in the Component
I’m trying to use the v-model inside a component but it doesn’t work. Code main.js, which will have the information used in the v-model: import Vue from 'vue' new Vue({ el: '#app', data: {fields:…
-
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
votes2
answers668
viewsHow to use filters in vuejs for data collections?
I’m having trouble filtering the data to be displayed in a select html. How can I apply a filter that based on a variable (which will be populated by another select) returns all.name items that…
-
2
votes1
answer271
viewsSimilar Vuejs animation in Jquery
I use a code in jQuery to make an animation to load the page, as I do the same with Vuejs? (function ($) { "use strict"; (function ($) { "use strict"; var uza_window = $(window);…
-
2
votes1
answer617
viewsAdvantages x Disadvantages SPA Vuejs
I have an application (closed system) in PHP structured in the company I work and we will rewrite this application to improve performance, usability and evolve this application. I am studying Vuejs…
-
2
votes1
answer692
viewshow to read the content of a json by VUE
I need to receive a file json for input type file and read the contents of this file on the front without having to make a request to the server. <input type="file" id="file" ref="file"…
-
2
votes1
answer303
viewsVue.js: how to change a $state of Vuex that is in a v-model?
I am with the following doubt, I have some inputs linked to Vuex states: <input class="form-control" type="search" placeholder="Filtre sua pesquisa"…
-
2
votes1
answer269
viewshow to use Vue.js interpolation in a Jango template?
Django uses a template syntax tool, called jinja2, which allows interpolation in the html document using double keys. Unfortunately, Vue.js uses interpolation in the same way. <p id="exemplo">…
-
2
votes2
answers970
viewsHow to resolve conflict between Vue.js and Laravel 5.4 no. Blade
I have the following element in . Blade (intended to interact with Vue not with Laravel): <div id="app"> {{ message }} </div> To try to activate Vue: window.Vue = require('vue'); var app…
-
2
votes2
answers891
viewsAssign the return of a function that returns from a Promise
I am exporting a function to another file that is as a Webpack-simple + Vuejs component. That’s the function of the file api-user.js: export function getUsers () { axios.post('/api/get_list',{})…
-
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
answers1105
viewsModal form validation with Vue and Vuelidate
I have a form inside a modal and I am doing the validation of fields (client side) using the plugin vuelidate. Use the plugin bootstrap-Vue to create the modal, however, when I implement the…
-
2
votes1
answer505
viewsComponent Autocomplete Vuejs
I want to create a component of autocomplete, then I have the following code. <Input v-model="form.autocomplete.input" @on-keyup="autocomplete" /> <ul> <li @click="selected(item,…
-
2
votes1
answer129
viewsFilters in Vue only work with interpolation, they don’t work with v-text. Why?
I know to use a filter on Vue, you can make the call as follows: Vue.filter('hello', function (input) { return "hello, " + input; }) new Vue({ el: "#app", data: { name: "Wallace", } }) <script…
-
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
votes2
answers155
viewsError printing Styles and scripts in Blade templates?
I have a CMS that is using Elementor to generate pages dynamically, this saves my html css and script in the database. I had a problem with the tag issue <style> and <script> because…
-
2
votes1
answer82
viewsJquery-Querybuilder does not work inside Vuejs
Good morning, I’m trying to use Jquery’s Querybuilder along with Vuejs, but I’m getting the following error: Below follows the code that is giving this error: this.$refs.builder.queryBuilder({…
-
2
votes2
answers291
viewsVue Submenu menu from json
Hello, I’m beginner in Vue I’m wanting to make a menu with submenu coming from a json, follow the codes I made: <template> <div id="app"> <img alt="Vue logo"…
-
2
votes2
answers607
viewsSwitch Button with Vuejs
Here’s what I wanna do: Pessoa Click on Botao Contratar that is green with Bootstrap It changes the class of the button. In short: Clicked the button he becomes another. What method and event should…
-
2
votes2
answers107
viewsVue.js: how to relate values in an array of strings?
I have the following problem, I have an array of strings that assembles a list: ex: op: ['100', '101', '102', '103', '104', '200', '201', '202', '300', '301', '303', '500'] From that list, I create…
-
2
votes1
answer485
viewsMy Vue.js function for currency conversion returns Nan
My Vue.js function for currency conversion using the API of http://free.currencyconverterapi.com returns Nan, instead of returning the currency conversion. <template> <div…
-
2
votes0
answers161
viewsVuejs <router-link> same route but different parameter
Guys I have the following component : <router-link :to="{name: 'menu1-mostrar', params: {atr: var1}}"> Menu1</router-link> <router-link :to="{name: 'menu1-mostrar', params: {atr:…
-
2
votes1
answer198
viewsfunction to remove item(any list) does not work in Vuejs
The last method of index.js is removeTodo() that I put a directive on the button but it doesn’t work. thanks! index.html new Vue({ el: '#app', data(){ return{ newTodo:'', idforTodo:3, todos:[ {…
-
2
votes1
answer132
viewsFilter table with Vue-multiselect
I am using Vue-multiselect to filter a calendar using Vue-cal and am having trouble filtering a table with this selector. I believe the problem is to filter the table with an array of data, for…
-
2
votes2
answers223
viewsMerge an Object with an ES6 Javascript Object Array!
Staff I have the following variables! let content = { cd_empresa: 200, cd_produto: 13287, cd_status: 604, dt_validade: '2019-05-09T12:34:00', dv_possui_subvencao: 1, dv_regra: 1, fl_possui_item: 1,…
-
2
votes1
answer308
viewsAdd more than one translation to Vue-i18n
Following the documentation of vue-i18n I managed to configure the translation in my application problem that I am stuck to only 2 languages, how can I add more translations? follows the current…
-
2
votes1
answer51
viewsChanging the default value of a parameter in a function is possible?
I have an array of functions, and I need to change the default value of the parameter with another value for each of them, in a loop.. Is that possible? Ex: var externalValidations = [ function…
-
2
votes2
answers68
viewsGet only first item from a sublist Vuejs
Well, I’m only trying to return the first item of the sub-array but I’m not getting it, the natural method {{ itens[0].name }} doesn’t work: <script…
vue.jsasked 5 years, 1 month ago Douglas Teles 771 -
2
votes1
answer1344
viewsVue - How to apply a dynamic, data and data-free 'v-Mask' directive?
I’m using the v-Mask directive, but the component data is dynamic, so at certain times I use the component with mask and at other times without mask, but in the v-Mask directive, if I use it empty…
-
2
votes1
answer919
viewsProblem with CORS using Vue + Laravel (only GET method works)
Vue: CLI 3 Laravel: 6 When trying to use different GET requests (e.g.: POST, DELETE), I get the following message: Access to Xmlhttprequest at 'http://127.0.0.1:8000/api/test' from origin…
-
2
votes0
answers286
viewsVue.js Update data from my table
I have a table that is filled in at the moment my screen loads, in this table I have listed all my corrections, I have a delete action for this correction, it deletes right because when I update the…
-
2
votes1
answer827
viewsvuex error: [vuex] Unknown action type
I need to separate the responsibilities of my store (vuex) from ONE file for two(services and store); The problem is that regardless of how I do it even using other examples it always returns the…
-
2
votes1
answer1413
viewsuse vueJS’s Watch() method to track changes in the values of a variable
<template> <div> <span class="badge" :class="styleStatus" > {{tipoStatus}}</span> </div> </template> <script> export default { props:{ status:{ type:String…
-
2
votes1
answer28
views(VUEJS) Access the router query before injecting the services into vuejs
(VUEJS) You can access the information that is sent by query on the router before injecting the services of an application? For example: import Vue from 'vue'; import App from './App.vue'; import…
-
2
votes1
answer95
viewsPosition text before and after a hyphen aligned to the center
I have two information, an email and a number ( phone ), between the two put a hyphen. I want to center the hyphen in the middle of the screen and put the email on the left side of that hyphen and…