Skip to content

Tag: vuejs2

Vue js load modal content with ajax

I’m using vue js with laravel, In my page i have 13 modals, I thing it’s not a good idea to insert 13 modals in the same page so i put this in my blade : And in my file.js i have this : Just for example here i have two modals ‘StatusModal’ and ‘UserModal’ and i load them in

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…

Async components Vue 2

I’m trying to use async components. Here is my configuration: Vue 2 using Single File Component approach Webpack 2 Vue Router The app is pretty basic, I have an “everyone” section contained in App and an “admin” section contained in Admin. I would like to load the component and a…

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 & conditional rendering with template tag

I am trying to follow documentation: https://v2.vuejs.org/v2/guide/conditional.html But for some reason my template is not working as expected, as soon as I put <template v-if=”variable”> vue fails to render anything. Any advice? Snippets that demonstrate problem: https://jsfiddle.net/o2tL2e…