Skip to content

Tag: vuejs2

Conditional import in Vue component

I have a root instance that has several CustomVideo-components in it (amongst a bunch of other components). The CustomVideo-component implements VideoJS, but it’s not on all pages that there is a CustomVideo-component, so I don’t want to import VideoJS globally. Here is an example of components on…

How to include vue app inside another vue app?

I’m currently requested to generate widget that will be included in different customers web sites. Let’s say somthing like: There is 2 constraintes: The use of iframe is forbidden The customers website could be done in whatever thecnology (PHP, React, ANgular, Vue.js, JQuery,…) As the reques…

Style Binding makes app no show up anymore in Vue

What I’m trying to do is to make small 20px x 20px boxes of different colors in Vue. But, whenever I try to do :style='{ background-color: color.text }’ (color is an object in the data with property text), it just breaks the app and it shows up with nothing. Sceenshot without :style='{ background-…

How does vue watch sublist change or v-model

I try to watch a list that has sub list and some <input> can change the sublist well. when I modify the input,watcher doesn’t work Answer Do a deep watch in order to watch nested changes and trigger the watch: Interesting: If the nested data is any of the following, the watch will not fire without…