Questions tagged as 'vue.js'

1
answer

Inserting Vue Component in the DOM via jQuery

I'm using Vue in an application where I have a list of items and a button to add more items. When you click add I load an external html with a component: <div class="gutters-8 col-lg-6"> <div class="form-group combined-inputs...
asked by 10.11.2017 / 18:49
1
answer

How to work with the Javascript console?

My project is generating this error: It'sbecauseofthismethod:components:{VLayout:require('@/layouts/base'),},HowdoIknowwhatistheresultofVLayoutusingconsole.log()?Ihavetriedinmanywaystoimplementconsole.loginthemethodbutisalwaysgeneratingerros...
asked by 29.09.2017 / 21:15
0
answers

Reverse slide transition, VUE JS

I'm developing a single page application / mobile app, with VUE JS, I want to slide effect when swapping pages, and I can do it this way: transition name="slide" router-view transition But I wanted the reverse effect of the slide when the u...
asked by 10.09.2017 / 20:28
1
answer

How to define a directive with Vue 2.0 that always binds as a string

I'm starting now with Vue 2.0 and I'm creating directives so that I can manipulate the style of an element based on the content of that directive, like this: Vue.directive('margin', function (el, binding) { $(el).css('margin', binding.va...
asked by 09.01.2017 / 14:57
1
answer

href blade Laravel and Vue.js

I'm doing the list of registered receivers and in each line there is an edit button, in href, I need to use the encrypt and pass the id, but this id comes from Vue.js and the blade using {{} } does not recognize the Vue.js variable, so my questi...
asked by 01.10.2017 / 17:52
1
answer

How to access Vue-Router dynamic route parameter

Using the vue-router, I came across a problem, when a dynamic route, type { path: '/horario/:dia/:hora', component: Bar }, A problem occurs, I can not access the day and time values on the destination page, this is because it is a template,...
asked by 08.06.2017 / 05:09
0
answers

vue-html-loader (Webpack + Vue-loader) does not find the images in the root folder

I'm having difficulty attaching the images contained in src of HTML5 within a route made in vue-router , since Webpack does not find the image that is in the root of the project, / p> C:. | index.html | gulpfile.j...
asked by 11.08.2016 / 05:00
2
answers

Problem in creating list in Vue.js

This is part of the HTML code in question: <div class="row"> <h1>Minha lista de elementos</h1> <input type="text" class="form-control" v-model="newElement" v-on:keyup.enter="addElement"> <ul&g...
asked by 19.09.2017 / 20:37
1
answer

Uploading files with Vue-Resource

How do I upload an image with Vue-Resource!? I have tried in many ways but I can not! Does anyone have a working example?     
asked by 13.07.2016 / 21:29
2
answers

'Delay' in the assignment / existence of properties in the instance vue

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() {...
asked by 24.10.2017 / 15:41