All Questions
Tagged with vue-props components
21
questions
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 '...
0
votes
0
answers
45
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 ...
0
votes
1
answer
22
views
Vue, passing props stops working when more than one component in the page
I have a component, MatchCard.vue in a page called MatchCardView.vue when navigating the website a person can click on a router link in a list item and be directed to MatchCardView.vue where the id ...
0
votes
1
answer
45
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:
&...
0
votes
1
answer
101
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&...
0
votes
1
answer
445
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 ...
0
votes
1
answer
2k
views
Vue3 : Why my property is not defined on instance?
I am building a dummy app with a component in a component passing properties.
I use firebase to store data and try to read the data onMounted.
I am getting this error but I don't understand how to fix ...
0
votes
1
answer
601
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 ...
2
votes
1
answer
1k
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 */
...
0
votes
1
answer
408
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 ...
1
vote
1
answer
1k
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 ...
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 ...
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 ...
1
vote
2
answers
624
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:
<...
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 ...