Skip to main content

All Questions

0 votes
0 answers
51 views

Vue 3: Isn't the value of a component's prop that's bound to ref in the parent component updated immediately?

I'm using Vue3's Composition API in a project that injects HTML code from a webpage (that's in my domain) into another webpage. I've made a simplified version of the real project's code base in this ...
sweet-pineapple's user avatar
0 votes
1 answer
48 views

I'm confused about the way of writing props in vuecli

So I'm building a shopping cart as practice and I don't understand why one way of writing the code works and the other one does not. This is the code that works and it shows the products perfectly: &...
Elisaniza's user avatar
0 votes
1 answer
102 views

Dynamic prop component not working in Vue 3

There's a component with a prop, a src from an image. I can't figure out how to pass from other component. The component with prop: <template> <img :src="avatar" /> </template&...
user avatar
0 votes
1 answer
463 views

Problem while passing data to child component using props in Vue

I'm new to Vue Js and facing an issue. I am using Axios to get users' data with JSON placeholder API. In the Sidebar component. I used getters to get the users' data from the Vuex store. Inside the ...
Evgeniy Sukhovarov's user avatar
0 votes
1 answer
726 views

Passing data to an ancestor component vue3

I have a multi-step form in Vue3 that has the following structure: <Formroot /> ... <formPage2 /> ... <postcodeWidget /> I have a data structure in my formRoot ...
tanbog's user avatar
  • 610
2 votes
1 answer
2k views

Can't get Vue 3 child component to properly recognize prop data

I have a parent and child component in Vue 3. I'm using the options (old) API. I am passing data, an object with a bunch of different properties and values, as a prop like this: /* Parent component */ ...
aCarella's user avatar
  • 2,578
0 votes
1 answer
572 views

Vue mutate prop correctly

I'm trying to create a simple component whose focus is to display an element in an array, but I'm having issues with Vue's philosophy. As you may know, if a mutation on a prop is triggered, Vue goes ...
Tails128's user avatar
  • 320
2 votes
1 answer
2k views

Vue3 split form into components avoiding mutating props

I've created a component which does a lot of work: Receives data from API Populate so many inputs with this data Manages the form submission doing the API post with data inside inputs So the ...
Marc Pont's user avatar
  • 1,078
0 votes
0 answers
275 views

Passing a axios request to a child component in vue.js

I am breaking my head in this. I am new to a fullstack project involving fullstack with vue.js and node.js. My problem is: My get request is functioning and fetching data from database, but, I can't ...
Gian Vellbord's user avatar
0 votes
1 answer
1k views

Vue child component not displaying dynamic data on first page load

Given the code below, my child component alerts trigger before any of the code in the Parent mounted function. As a result it appears the child has already finished initialization before the data is ...
mikeym's user avatar
  • 6,421
1 vote
2 answers
688 views

Parsing objects as props while looping through them in child component VueJS

I have a Table components which I want to make reuseable. The Table component takes in an array of objects and loops through them with the v-for directive. The Table component looks like this: <...
egx's user avatar
  • 409
1 vote
1 answer
1k views

How to update Vue array of components with a click IN one of the children components

I am displaying an array of child components and in the child component, I need to click some text to make THIS child push to the front of the array. I've tried it where the child sees the array which ...
Shawking's user avatar
  • 136
1 vote
0 answers
171 views

Use dynamic image src as prop Vue

I am trying to send a dynamic src as prop to imageComponent, but i am doing it wrong. fileName = about.gsx$imagesrc.$t does not work. The images are stored in asset/Pictures and about.gsx$imagesrc.$t ...
Albert97's user avatar
2 votes
1 answer
603 views

Vue Dynamic Component & Dynamic props

I have a modal component like below <modal> <component :is="modalComponent" /> </modal> And I need to pass different props to the dynamic component. ...
TommyD's user avatar
  • 1,043
0 votes
1 answer
36 views

Vue components: props undefinded

When I want to get my variables as props from one vue.js file to antoher it won't work. I've seen that this issue is quite common but the answers just don't help me. I can't see what is wrong with my ...
stud's user avatar
  • 23

15 30 50 per page