Questions tagged as 'vue.js'

1
answer

VueJS - Popular select with API data

I'm having trouble popping a select with the data I got as a return from an API. I'm using Vue. Following codes: My HTML looks like this: <select> <option value="" disabled selected>Escolha uma conta</option> <op...
asked by 07.05.2018 / 16:07
2
answers

Performance of EventBus in Vuejs

On some projects that I'm performing maintenance, there's Global EventBus . In this case, it was generally seen as follows: event-bus.js import Vue from 'vue'; const EventBus = new Vue(); export default EventBus; However, I came a...
asked by 21.03.2018 / 02:01
2
answers

What is the difference between prop and emit in vue.js?

I know that prop is from parent component to child and emit is from child to parent. But I would like an example of using the two so I can better understand the concept!     
asked by 02.08.2018 / 05:44
1
answer

How to work with search method in VueJS?

You realize that the search is working perfectly: link I wanted to only list the records when something was typed in the input search , I know what place to make this change would be in that code snippet: filteredBancodedaos () {...
asked by 13.02.2018 / 17:18
1
answer

How to make a filter with a text field

I want to use the value of #search as the filter (only the name field of JSON) for v-for . The text entered in #search and how the filter will actually be indifferent to me, what I really want to know is how I use t...
asked by 29.10.2017 / 20:25
2
answers

Dynamic properties in vue 2

I'm studying reactive frameworks for a project, and one of the features I need is to create dynamic properties, in angularJs just start a ng-model that the property was created, but I see that this is not possible in Vue 2 , Becaus...
asked by 23.10.2017 / 13:54
1
answer

VueJS / 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 is a better understanding: import produtos from './produtos' import artigos from './artigos' var API_Request =...
asked by 02.10.2017 / 21:49
1
answer

Vue js render video

I have the following component: <div v-for="video in videos" :key="video.title"> <video class="video-js" controls preload="auto"> <source v-bind:src="video.src" type="video/mp4"> </video> </div>...
asked by 09.11.2017 / 19:00
1
answer

Retrieve select value with VueJS

I have a form and would like the field (which is a select) to return (selected) the previously marked value. Ex: If my selected is empty, select will show the values normally (1, 2, 3, 4). If it has value, my select will show al...
asked by 06.07.2017 / 14:50
1
answer

Date format configuration in VueJS / Quasar Framework

I have a field for entering the date of birth, and I want the result of the insert to be formatted in 'DD-MM-YYYY'. I was able to make the date appear in the input in the desired formatting, however when I send the date to the database it goes l...
asked by 16.08.2017 / 15:14