Questions tagged as 'vue.js'

1
answer

Convert strings to CamelCase for 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)" > {{index}} </button> I would like you...
asked by 25.03.2018 / 04:07
1
answer

Create component to be used via npm

I started working a lot with vue and started using it on all the projects in the company where I work. And with that, I ended up creating some componentes , in general autocomplete , I know that there are many, I have already...
asked by 11.12.2017 / 14:35
1
answer

Vue 2: Get input value without using v-model

I'm already detecting when enter is pressed in input , how can I get the current value in> too? It can not be with v-model , because I need to leave a default value, as shown in the example below: HTML <div id="listas-page"&g...
asked by 22.01.2018 / 14:16
2
answers

How to resolve conflict between Vue.js and Laravel 5.4 in .blade

I have the following element in .blade (with the intention of interacting with vue not with laravel): <div id="app"> {{ message }} </div> To try to activate vue: window.Vue = require('vue'); var app = new Vue({ el: '#app'...
asked by 10.03.2018 / 06:30
2
answers

VueJS: How to display a value in the dynamic modal input with v-model or v-bind: value

There is a listing where I return all users active on the system and there is a button for Edit User , when I click on this option, I open a modal, capture the user id and data of that user in question, and I load the inputs with the fields....
asked by 08.09.2016 / 18:11
3
answers

How to remove item from an array by filtering by value?

I have a certain array: acoes_selecionadas: ['nome1', 'nome2']; I'm using this function, but splice works based on element ID, I need to find a way to remove it by value. seta_vender: function() { this.vender = !this.vender;...
asked by 14.12.2018 / 04:39
1
answer

How to filter an array of objects using other array of objects?

I'm trying to create a filter for recent products that are fetched (when I start typing, it already shows the found products, like a "like"), I have a global variable that is an array, and from there I except in another array the return item d...
asked by 19.09.2018 / 22:09
3
answers

Doubt in computed method Vue using Vuex

I have the following code below using Vue.js and Vuex . This code increments and decrements value as a counter. I would like to know the count method within computed in the Vue instance. I know it returns the count status of...
asked by 12.09.2018 / 15:51
2
answers

Why does Vue.js lose formatting when adding dynamic items? Is it possible to correct this?

I have a form where the phone fields is dynamic so the user can add as many numbers as he wants. But when I click the button to add new item, this created item appears unformatted. Not to mention that a bug still descends the entire screen....
asked by 19.10.2018 / 18:53
1
answer

Can not use v-for directive on prop passed to Vue component

Follow the code: <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8" /> <title>Passagem de valores com VueJS</title> </head> <body> <div id="a...
asked by 14.10.2018 / 02:46