Closed
Description
It would be nice to support spreading into component props and to have a special identifier to access the whole local component state.
Spread could look something like this:
{{#each rects as rect}}
<Rect {{...rect}} />
<!-- or -->
<Rect ...{{rect}} />
<!-- same as -->
<Rect x="{{rect.x}}" y="{{rect.y}}" />
{{/each}}
And having a special identifier for the complete state object would make decorator components really awesome, like so:
<!-- RectDecorator.html -->
<Rect {{..._}} foo="bar" />
<!-- same as -->
<Rect x="{{x}}" y="{{y}}" foo="bar" />
<!-- main.html -->
<RectDecorator x="1" y="2" />
Metadata
Metadata
Assignees
Labels
No labels