Skip to content

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:

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 …

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 elem…