1
A similar problem has been solved in this issue:
Where a prop era null for the requisition ajax of the parent component had not yet concluded; but in my case the prop is undefined even after the complete assembly of the component and data passage via ajax has been completed.
export default {
props: ['orders'],
filterID: null,
...
watch: {
filterID: (value) => {
console.log(this.orders) // undefined
}
}
@Miguel I need to apply a filter to
ordersin accordance with theIDso I need to capture when the fieldIDis amended.– RFL
the filter would be applied where the
console.logwith:this.orders.filter()...– RFL
@Miguel put a
watcherinordersto "copy" the data to another component property but always returns it to menulleven after the data is passed to the listing component.– RFL