Questions tagged [vue-props]
For questions specific to the usage of the "props" property within the Vue.js framework. When using this tag also include the more generic [vue.js] tag.
vue-props
480
questions
0
votes
0
answers
12
views
How To Unquote Numeric Properties In Vue
When assigning attributes to components in the template section of Vue, values of numeric props are placed inside quotes which tend to generate a lot of warning in the console. Even after removing ...
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
26
views
VueJS 3 : reference value not updating on click
In VueJS 3, I have a parent Component Index:
<CreateReportButton>
<slot>
<PrimaryButton as="icon" size="xs" color="white" @...
0
votes
1
answer
52
views
Vue3: Computed value (array) not sorting when based on Props
I am using a computed value that returns an array. This computed value is being used in a Vue component.
<component v-for="(item, index) in sortedItems" ...more props />
The prop that ...
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
0
answers
67
views
Vue 3: withDefaults() prevent TypeScript from checking conditional props
I've tried to create conditional props for my <Button /> component using discriminated union types. I don't want to allow pass down props like to, hash, linkBehavior when another prop called ...
0
votes
3
answers
233
views
How to pass component as props in vue 3 composition api?
i want to pass props customActionComponent as component and need to render in child component
FlightDetail.vue
<template>
<ComponentCard
title="Flight Details"
subtitle=&...
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
105
views
Vue 3: Passing Data via Props and Vue Router Results in Invalid Params Warning
I'm working with Vue 3 and trying to pass data between views using Vue Router. My goal is to pass data from JobSelection.vue to Invoice.vue through router parameters
In index.js I defined the props as ...
0
votes
0
answers
30
views
Passing an object to modal VUE
I'm having trouble with passing information to my modal.
I would like to pass a complete object to the modal.
I have a view (shortened for this purpose):
<script>
const openModal = (x, action) =&...
0
votes
0
answers
41
views
Vue JS - How to send props and emit correctly to dialog component for edit the data
I have a parent component 'DaftarKajian' and child component 'DaftarKajianMobile' and another child component named 'EditJadwalDialog'. What I have to tried is props the fetched data from '...
1
vote
3
answers
267
views
Pass dynamic object data via nuxt-link to component
I have a project which is build in Nuxt 3 with a homepage which shows products. On that homepage, you can click on the title of the product and the product details page opens up. I archive this by ...
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 ...
0
votes
1
answer
44
views
In Vue3's compositional API, how can I v-bind a dynamic group of props to a child component and not lose reactivity?
The context is that I have a Button component and a SquareButton component that wraps it as a higher order component. The SquareButton takes the same props as Button, but includes an extra prop needed ...