Essentially, I am working with a component
<Device>
v-for="device in devices"
:key="device.name"
:device="device"
:name="device.name"
:number="device.number"
:type="device.type"
:status="device.status"
:plan="device.plan"
:plan_price="device.plan_price"
:health="device.health"
</Device>
Next, I set them up in the props section of the component
props: {
type: { type: String, default: "" },
number: { type: String, default: "" },
name: { type: String, default: ""},
plan: { type: String, default: "" },
plan_price: { type: String, default: "" },
status: { type: Number, default: 0 },
health: { type: Number, default: 0 },
},
I'm curious if there's a way to pass :device="device" without needing to individually pass each property. I also aim to avoid using device.name and device.property in the template within the component. Thank you for any advice!