Skip to content

Tag: vue.js

VueJS – How to detect Ctrl+V?

I’ve already seen the answers to this question, but it’s not the solution I need, since it’s for jQuery, and I need something for vue.js. So far, I was able to detect single character presses using the ff. code: The code above successfully prevents the textbox from accepting ArrowLeft, Home,…

Vue.js devtool change not showing up

I am currently working with moment.js inside a Vue component but I am not seeing certain changes show up in vue devtools. My example: I am guessing this has something to do with the fact that I am calling a method on my moment data property instead of manipulating it directly like a number. An example like th…

Vue props that aren’t explicitly declared

I am making an attempt at something similar to redux-form but in Vue & with Vuex. Basically it should make the handling of forms more streamlined and make you write less boilerplate. The problem i’m having is when i’m trying to pass props dynamically to a component from a HOC. I’m not qu…

Vue.js – components data do not update

I have a Vue list that is based of an array and each array item renders a component where I bind the array item properties. This component has a mixed data, based on the binded properties The problem is that when I change the initial list array in any way, the mixed prop of the component maintains it’s …

Vue.js with Rails not working

I am trying to send an AJAX call to Rails Controller to fetch some data and use Vue.js to output it. But it doesn’t seem to be sending any kind of request to the Controller. What am I doing wrong here? Vue.js does work without AJAX call app/assets/javascript/calculator.js app/controllers/calculator_cont…