Skip to main content

All Questions

Tagged with
0 votes
1 answer
48 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, ...
theedchen's user avatar
  • 1,886
0 votes
0 answers
140 views

Prop with default value gets undefined type in Vue 2

I have a child component with code: export default { props: { search: { type: String, default: () => null, }, } } And a parent component with code: <template> <ChildComponent ...
blackkk68's user avatar
0 votes
0 answers
36 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 ...
user22869368's user avatar
0 votes
1 answer
2k views

Can we pass data via props when pushing to a route in Vue?

I am asking this question to understand whether we can pass some data via props when navigating the new route. Because I read a few articles which recommend passing data as props and I want to ...
Neha Soni's user avatar
  • 4,463
0 votes
1 answer
924 views

Property or method "$store" is not defined on the instance but referenced during render in Vuex

I'm just learning state management of VueJs And I stuck on that, if any one know please let me know How can I render $store in my Vue component When I console the $store its undefined main.js ` import ...
Sagar's user avatar
  • 3
0 votes
0 answers
43 views

Is there any way to pass props to component without calling it

I have 3 components like: Parent, First-child and Second-child. And I am iterating First-child in Parent component in array(it is cards), and I want to call Second-child in Parent component with First-...
Rustam Ravshanovich's user avatar
0 votes
0 answers
200 views

How to pass props to third child in nuxt

ModalsComponent is being global to all my cards This how I am calling CardComponent: <CardComponent v-for="card of cards" :key="card.urlsId" :cardImages=&...
Rustam Ravshanovich's user avatar
0 votes
1 answer
372 views

VueJs Lost Prop Data After Restart Page

Hi friends, I am passing data from parent component to child component. But the data I send to the child component sometimes shows " "(empty text) in the console. For example, when I refresh ...
harundogan's user avatar
0 votes
1 answer
154 views

v-for adding two props in the same component vuejs

Guys I want to do a v-for using a component that has two differents props COMPONENT <template> <div class="bg-light rounded p-2 px-5"> <h5> {{ cardNumber }}</...
João Denari's user avatar
1 vote
1 answer
634 views

How to get parent component's ref in child component

I want to pass button element to the child component using refs. <button ref="button"> Button </button> <child :element="$refs.button" /> But in child ...
World's famous people's user avatar
0 votes
1 answer
2k views

facing a problem of defineProps is not defined

I am facing a problem of "defineProps is not defined". I am not sure why is this not working where the code below actually works const props = defineProps({ time:Number }) App.vue <...
BrownEyedSoul's user avatar
0 votes
1 answer
332 views

Can I call a computed in the props of a child component in Vue js

I have a child component and a father component. in the child component, i have a boolean props with a false default value. I call the component child in the parent component and when i set my child ...
ln3106's user avatar
  • 123
1 vote
1 answer
463 views

How to pass images url through props in vue.js (with URL links)

So, I have this component <template> <div class="newsitem"> <img src="${{imageurl}}" alt="newsimage" width="200" height="100"> ...
mikasa's user avatar
  • 145
1 vote
1 answer
542 views

How to access to v-model in custom component

I know we can use a v-model on a vue custom component to bind the value to parent component by this.$emit(input, e.target.value). Is there any way we can access the v-model with it's initial value? I ...
blackcityhenry's user avatar
0 votes
1 answer
199 views

Data from props not showing in v-model (VueJS)

I'm trying to use a props from the parent component to use it as a data in my child component. parent component : <ChangeCommentModal :comment="this.modalInfo.comment" /> And child ...
Arnaud's user avatar
  • 15

15 30 50 per page
1
2 3 4 5 6