Skip to content

Tag: vue.js

Hiding div/popup on page load until button click

I have a working modal in Vue, however, the modal loads empty for a split second on page load and I want it to remain completely hidden (even on page load) until the button is clicked. I tested with display:none in the CSS which works to hide it on page load, but it remains completely hidden when pushing the …

Cannot set property ‘srcObject’ of null in Vue.Js

I am using vue.js with element-ui library and I have this problem where I need to show this dialog component to be able to show the camera and the user’s audio but I have the following error in console TypeError: Cannot set property ‘srcObject’ of undefined” As you can see, first I am …

NuxtJS how to reload asyncData with emit

I would like to know if it is possible to reload asyncData in an emit in a function like this Page component-child Is it possible? Otherwise how to do it? Answer You can try this.$nuxt.refresh() to refresh fetch() or asyncData() hooks. As explained in the documentation: https://nuxtjs.org/docs/2.x/concepts/co…