Here's an example of conditionally sending props to the Quantity component.
<v-card
class="mx-auto"
max-width="344"
shaped
v-for="(item, index) in allItems || orderedItems"
:key="index"
>
<Quantity {allItems ? :Items = item : :Ordered = item} />
</v-card>
If orderedItems
are activated, I want to send the Ordered props. If allItems
is activated, then I will send the Items
props.