Skip to content
Advertisement

Tag: vue-component

How can I use Blade in Vue files?

I’m trying to use Blade in my Vue file carousel-signUp.vue Like: But in the end I’m getting an error. The compiler can’t understand the difference between Vue syntax and Blade syntax. How can I define Blade syntax in Vue files? Or, does anyone have an idea how to use {{route(‘dump’)}} value in my vue file? Answer A better solution might

Vue making a variable available in all components

I am currently reading out a language setting from the dom and setting it as a global Vue.js variable like this: It works fine but I have also seen this as an example from a Vue.js event bus: What is the real difference between these two and is there possible a more preferred way of doing this? Answer Object.defineProperties is

vuejs 2 component base64 image not updating

what i want to achieve: load an image from jwt token protected source the server return the image as base64 string and i’ll load this string as background url on the image parent component: myImage component now if i delete a photo (splice) from the form.photos array always the last image get removed. when i remove the green image the

Advertisement