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:
Tag: vue.js
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
How can I use window print in modal vue?
My vue component like this : If I click print button, it works. But it displays the entire website. I just want if I click the print button, it only shows the contents of the modal How can I do it? Answer One way to doing this is by creating a clone of the modal and using css to limit
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
Get the list of all selected check boxes with Vue.js
How can I get a list of all check boxes that I selected with Vue? This is my HTML which works and shows me a list of my products with a checkbox. What I want is that when I click on a button, it fetches all check boxes that I selected. And give me all the values. But I can’t
Vue: convention for conditional props in dynamic components?
I am fairly new to Vue, so if what I am doing is absurd, please let me know. A common convention in many of my components is something like this (only showing relevant parts of code): I dislike this as thing.text may in actuality be a lot of stuff (not just text). Further, I dislike the redundancy for rendering the
Pass data from child to parent without events just on load, it’s possible on vue world?
I feel that impossible to pass data from child to parent without @- click event or events or input fields or something need to interaction just on load pass data from child data variable to parent in another data variable by using variable and control in this data from the parent variable, just on load, it’s possible? Pass JSON data
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