Questions tagged as 'vue.js-2'

2
answers

How to debounce (see only after finishing typing in the input) in VUEJS?

I come from AngularJS and, at certain times, when I need to query according to what the user is searching, I use ng-change , but I combine it with ng-model-options="{debounce: 500}" . This causes the angular queries not to fire off q...
asked by 10.10.2018 / 17:24
2
answers

How to import mixins into single file components?

When trying to import the mixin the following problem occurs    Error in render: "TypeError: Can not read property 'components' of undefined" But there is nothing abnormal in the components because when taking the mixin everything works n...
asked by 29.11.2017 / 01:20
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 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

VueJS2 Policy Update

I have a problem in my Money directive, it works like this: I make an Axios call to my API, the API brings me a value and I format it to the default BR. But now I had to create a atualizar button that is bringing me this formatting proble...
asked by 02.04.2018 / 22:31
1
answer

How to use variables dynamically in vue

I would like to know how to use propriedade of a Objeto in the component concatenate with string and become the name of the class in v-for My object: data(){ return{ user: {name:""} } } I would like m...
asked by 13.03.2018 / 21:48
2
answers

Style within Vue.component

The question is quite simple: Can I insert CSS / SCSS style within a Vue.component () , to stay within the scope of the component? Something like const Color = Vue.component('Color', { props: ['row'], template: '<div class="ba...
asked by 09.01.2018 / 12:38
1
answer

Return function true returns false on a Vue expression

I've created a method that serves to make a difference on a particular date with today's date. With the code I put, it returns true . But when I use it inside a computed value, it returns undefined . And in the computed value I make...
asked by 27.01.2018 / 17:38
1
answer

How to deploy a vuejs (browserify) application in heroku?

I raised the server with express , however using a schema for webpack because I did not find anything related to browserify , follow the code ... // server.js var express = require('express'); var path = require('path'); var...
asked by 21.12.2017 / 16:19
2
answers

Import Vue or other components into child components

I have an application in VueJs2, in which I have an app.js, where I instantiate Vue and do the imports (Templates, plugins, etc). It turns out that some plugins / libs I can usually use inside child components (axios, for example), others I need...
asked by 04.01.2018 / 17:28