Skip to content
Advertisement

Tag: vue.js

How to access Vue data in Vue-CLI in browser console

I saw many answers telling to use vue-devtools to access the Vue Object but is there a way to do it in the browser console? Like in the tutorial, we enter > app.data.sock in console to get the data Let’s say: main.js App.vue HelloWorld.vue How do I access the data of ‘titles’ in HelloWorld.vue? In other word, how to get

Nuxt.js dynamic component error “Either pre-compile the templates into render functions, or use the compiler-included build”

I’m getting the following error in Nuxt.js: I was following the examples here: https://stackoverflow.com/a/39519105 and my RenderPost.vue roughly looks like this: I added the <client-only> because I was also getting error about server and client not matching up. Without it, I get an additional error that says: Answer Nuxt normally includes the Vue runtime only (excludes the compiler) as an

Search function .match() case sensitive

this.items is an array of objects. I am using this to search the items by the search bar, but .match() is case sensitive. For example, if I have an item called Milk, when I type milk, it won’t come up. How can I make this work for both lowercase and uppercase? Live demo I tried: but it gives me a

Vuetify tooltip refresh/rerender on hover

I have a vuetify tooltip component. In the tooltip I have a {{date | moment}}. I get a static a few seconds ago. I want every time I hover over the button, to refresh the button tooltip to the current elapsed time (10 minutes ago for example). I can’t figure out how to rerender the tooltip on hover with the

Prevent click event in Vue conditonally

I am disabling document body scroll when my mobile nav is open which is working as expected. However it was not removing the overflow hidden when user would click a link to another route/page. I created a simple method to remove the overflow hidden when a link is clicked in the nav when the menu is open, which does work

Advertisement