Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using rest in each blocks #1848

Closed
RedHatter opened this issue Nov 10, 2018 · 1 comment
Closed

using rest in each blocks #1848

RedHatter opened this issue Nov 10, 2018 · 1 comment

Comments

@RedHatter
Copy link
Contributor

Would it be possible to use rest parameters in an each block? This would be especially helpful in passing an undefined amount of properties to a child component via the spread operator. I'm envisioning something like below.

{#each cats as {name, ...rest} }
    I'm {name}! <Cat {...rest} />
{/each}
@Conduitry
Copy link
Member

#2647 was a duplicate of this and no one noticed. This has been implemented in 3.2.0

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants