Project a new alias/variable in a template?

I currently have code similar to this:

<template slot="label" slot-scope="{ item }">
  <my-component :color="nodeState[item.id].color" :name="nodeState[item.id].name" :count="nodeState[item.id].children.length"></my-component>
</template>

I am looking to do something similar to a “with” statement or an alias. For example:

<!-- This is invalid! -->
<template slot="label" slot-scope="{ item }" :node="nodeState[item.id]">
  <my-component :color="node.color" :name="node.name" :count="node.children.length"></my-component>
</template>

If this example were to have worked, I would have projected ‘node’ to actually be ‘nodeState[item.id]’, and the remaining template is much easier to read.