After numerous attempts, I am still struggling to successfully pass a prop down to a child component.
<Project :grossMarginPerResource="grossMarginPerResource" :threshold="threshold" :orderBy="orderBy" @refetch="refetch" v-if="group_by == 'Project'"></Project>
The child component is supposed to accept this prop:
props: ['grossMarginPerResource', 'orderBy', 'show_costs','threshold'],
Although when trying to access this prop, it always returns as undefined.
If I log the prop in the parent component, here's what is displayed:
{ "green": "1000", "yellow": "400", "red": "400" }
However, in the child component, running:
console.log(this.threshold)
the output is consistently showing as undefined.