All Questions
Tagged with vue-component vue-props
121
questions
0
votes
2
answers
37
views
Vuejs 3 props are all undefined
I know this has been asked before but nothing I've tried works, even the official docs
I have a view sample vue component and I want to pass a prop so I can display it
<template>
<div ...
0
votes
1
answer
49
views
Binding multiple properties to a component using and object as props - Vue 3
I'm having a little problem binding multiple properties to a component using an object. When I use this component on any other page I expect to pass the props in matching the ContentOptions interface ...
0
votes
1
answer
51
views
In Vue.JS, How to pass and change props value into nested components?
My requirement is very basic and easy, but not sure why even ChatGPT keeps giving me answer that has warning messages.
I am using Vue 2.
I have three nested components: GrandParentComponent, ...
0
votes
1
answer
61
views
Passing static data from parent to child Vue component
I'm studying Vue.js online through YouTube videos and I learned that to pass data from a parent to a child component we use v-bind in the parent and props in the child, yet after I created my first ...
0
votes
1
answer
130
views
Vuejs child component props does not update when parent component update props value
I have a parent and child component setup, whenever i pass an object property to my child component, it only picks up the initial value and does not further update when changes are made from the ...
1
vote
1
answer
32
views
Passing object with reactive properties as a prop triggers child component onUpdated hook when updating parent component state
Consider a simple component Comp.vue file that only logs a message in the console when updated:
// Comp.vue
<script setup>
import { onUpdated } from 'vue'
onUpdated(() => {
console....
0
votes
0
answers
144
views
How to properly wait for props in child component from parent
I have created a child component which iterates to a variable that was sent from the parent component. The parent components sends an axios request to the backend and then sends it down to the child ...
0
votes
1
answer
167
views
Provide and inject multiple properties and multiple functions that mutates multiple properties
According to the Vue documentation on provide and inject APIs https://vuejs.org/guide/components/provide-inject.html, you provide a state and function to update state like this:
<!-- inside ...
0
votes
0
answers
37
views
How can I pass form data from a nested component to a outer component using Vue2 and Nuxt2
I am fairly new to view and learning as I go. I am trying to get data from a form that is built in different components. The flow is outer component calls inner component calls nested component. I ...
0
votes
1
answer
238
views
Vue doenst update modelValue inside watch
Emitting update:modelValue event inside $watch doesnt update modelValue if I dont pass modelValue by props. How I can make sure modelValue is updated without passing modelValue by props?
MyComponent:
...
1
vote
3
answers
114
views
Items arrive as undefined at child component
using the quasar framework with Vue 3, I am experiencing the following issue:
Whenever I try to pass variavles/objects/arrays or whatever from a component to another, regardless of what methos I use (...
0
votes
1
answer
161
views
Passing dynamic text value to shared button component in Vuejs
I'm trying to pass dynamic text value to my shared component named "Button component" whose text should appear in Spanish or English based on the language chosen.
For translation, I already ...
1
vote
1
answer
501
views
Transfer variables between Vue components
I’ve just started to learn Vue.js and need help.
I have two components, the first one is not a parent for the second.
I need to transfer a variable from one component to another. I’ve tried to use “...
1
vote
1
answer
205
views
Prop being passed but not updating the component
So I have a function called updateAll(data.items) which should take the array and randomly assign a new name, it appears the data.items is updating when I view in vue dev tools and is being passed to ...
0
votes
1
answer
288
views
How to pass rest of the properties which are not defined as props to a component in Vue?
For instance, I am writing a component, CustomButton, but I don't want to declare all possible props such as class, title, etc. or pass all events.
In React we can get the rest of the props and use ...