Questions tagged as 'vue.js'

1
answer

Eloquent Laravel - Migration e Model

Could someone give me an example of how I make a relationship in the migration and model, where this relationship results in a table with external ids. Example: A reseller by having no or n addresses, and an address can only have one resal...
asked by 10.10.2018 / 19:08
2
answers

How to select options from a select populated dynamically by vue.js?

I have a select in a form, and the items in this select are populated dynamically by vue.js. My problem is that when I open a saved database in the database for editing on this form, I need to have some items selected according to what was sa...
asked by 16.10.2018 / 07:44
1
answer

Property Value Access

I have a method where I need to get the number of each table, but, the return is always the length of the property and not its value. If I leave only one table the method correctly returns the value of the property, however if I add more tables...
asked by 30.07.2018 / 23:08
1
answer

How to add a class in a label tag of a dynamically selected input by vue.js?

I'm using Boostrap and I have a sector in the form where the client will choose some items, and when clicking on the item the bootstrap adds the active class in the selected item, and with css I do the item to change color. Getting more or...
asked by 01.11.2018 / 02:40
1
answer

How not to present in the html the keys of a vector in application VUE.js

I'm working on a simple application with Vue.js, when checking some checkbox the marked options are presented in the Html, so it works normal, but the problem is that the vector brackets appear as well. You can not present them. var app =...
asked by 27.06.2018 / 22:51
1
answer

How 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 trouble with loading from my page. My Vue variables are exposed at startup and are only rendered after javascript loads. My example is as follows: // adicionei o 'setTimeout'...
asked by 29.05.2018 / 14:47
1
answer

Inline edition vuejs

When you click on the note column all the inputs will appear. I wanted each input to appear when clicked on the corresponding line. new Vue({ el: '#app', data: { nota:'nota', edit: '', myclass: '...
asked by 24.05.2018 / 16:04
1
answer

Problems rendering main.js of Vue.js

I am new to Vue and I need to maintain a project .. the problem is this: I have in the main.js the route scheme .. main.js import Vue from 'vue' const app = new Vue({ el: '#app', data: { message: 'Hello Vue!' } }); p...
asked by 17.05.2018 / 16:59
1
answer

How 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 executing the same function: import Vue from 'vue' import axios from 'axios' new Vue({ el: '#app', data: { skills: [], }, mounte...
asked by 20.05.2018 / 19:08
1
answer

Clear vue-router history when loading main menu

In a PWA I am using VueJS and I am having problems with the back button of the smartphone, because when I use it PWA does what is most logical and returns to the previous screen. But I just log into PWA and log in and when I use the back butt...
asked by 12.04.2018 / 16:41