Questions tagged as 'vue.js'

1
answer

ReferenceError: timbreController is not defined

I'm trying to generate nodejs code, but it sends me the following error module.exports = { oninit : function (vnode) { this.ctx = new timbreController(vnode.attrs); }, view : function (vnode) { return facturaView(this.ctx) } }; fun...
asked by 23.01.2018 / 20:12
1
answer

Does Vue.js always load all the templates on the client side?

Recently, I am venturing into the world of vue.js and although I understand all the components and things well, there is something I do not quite understand. When handling all the frontend from the client side, does this mean that...
asked by 21.12.2017 / 15:42
1
answer

Error showing data from an array of VueJS objects

I have an arrangement of objects called materials and when I try to put it in a VueJS component and then show it I get an error: <script> var app = new Vue({ el: '#app', data: { materias: [] }, created(){ var _this = this; var url = "s...
asked by 10.12.2017 / 03:39
1
answer

How to use the $ emit function in Vue js

I am using as a library Vue.js I have the case of using a component that calls other components the question is how can I issue a function when doing an action within my child component. example:   that by making click in the child c...
asked by 02.12.2017 / 12:48
2
answers

I can not get the text with javascript and vue.js, send it to me null

I am trying to get the text of the span tag with javascript, but the sending of the data remains in null. This is how I have the code: html: <div class="col-lg-10 "> <span id="trunc">Lorem ipsum dolor sit amet, cons...
asked by 10.10.2017 / 18:10
2
answers

Get Index of an object and Delete In Vue Component

This is my code based on this link But I do not get the index of the for cycle, Basically I need a button to delete the element that is clicked on. The removeChild method does not work. ItemClean.vue <template> <...
asked by 27.09.2017 / 04:21
1
answer

Vue 2 directive: src does not show image but loads HTML

I am creating this application with Laravel 5.4 and Vue 2 and I need to show an image if it is present or not. For this I used the directives v-if and v-else . To begin with, this is my JS code: var vm = new Vue({ el: "#app...
asked by 04.08.2017 / 19:26
0
answers

How can I print multiple Images with Vue carousel-3d?

I'm using vue.js and vue carousel-3d to show images of an API, however when I follow the example of the official website ( link ) only prints the first image and sends an error error in the terminal, this is the code I am using: request to th...
asked by 10.07.2017 / 22:15
0
answers

Datatables does not recognize VueJs

I have the following created component, if you see, I have two console.log () inside the mounted method, one outside datatables and the other inside, and the one inside datatables throws me error that does not recognize. "Can not read property '...
asked by 09.07.2017 / 03:17
1
answer

how to make a v-link connection with vue.js + rails?

I want to make a connection to another view and use the parameters of the first view in the    landig page: video_populares.vue with vue.js + rails, but I am confused by the examples that I find do not use for meters of an API, I will be...
asked by 06.06.2017 / 18:02