Skip to content
Advertisement

Tag: vue.js

Failed to compile vue.js app due to axios get request

I have this seemingly simple vue.js component which causes the app fail to compile: The error that I get is: I have used axiom in other components in the same app without any issues so have no clue what could be wrong here? How can I fix it? Answer The created property needs to be a function, not an object:

How can i get an ID from a select multiple using Element?

I have a select for persons assigned to a proyect, so i need to send the ID from the object selected to a function i tried: Array persons: Method The pid (person id) is undefined and i can’t find a solution for my case, i will appreciate help and comments. Answer You are facing what is referenced in Vue.js documentation

Access LocalStorage in Middleware – NuxtJs

Well, I’m starting with nuxt and I have following routes: I want to protect the /dashboard, but only for users logged in with a token in localStorage. The simplest way I thought of doing this was by creating a /middleware/auth.js and registering it in the /dashboard/index.vue component. But I cannot access localStorage within a middleware, because LocalStorage is client-side. I

Use named slots inside grand-child component

I’ve created a global components extending Bootstrap Vue Table component to made a custom template for each table named VTable. The Bootstrap Vue Table component have possibility to use named slots to customize the data rendering. I use the global table component inside another one using the new custom HTML tag. The problem is that the named slots used in

Why Vue Component Won’t Update On Select Change

I have a form that changes some text within a vue component when a select box is changed. I’ve created a highly minimized version of this in jsfiddle to show the issue I’m experiencing: https://jsfiddle.net/ywaug7ft/ HTML: Vue: Basically, when I select female or male from the dropdown, my vue component should update the h tag to say Your Details. When

How to get selected value from dropdown in vuejs?

HTML JS How can I get the selected value of v-select upon clicking on the button ? . . Answer If you are refering to vuetify you can continue reading. Let’s take this example (codepen): If you use other key for value in your items object you need to specify the item-value attribute in your v-select element, else it will

Advertisement