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

Unable to use js for prop values like attribute values #98

Closed
okmanideep opened this issue Jan 12, 2023 · 1 comment
Closed

Unable to use js for prop values like attribute values #98

okmanideep opened this issue Jan 12, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@okmanideep
Copy link

πŸ‘‡ works - βœ…

<tags :value="tags.join(',')"></tags>

But πŸ‘‡ does work - ❌

<tags @value="tags.join(',')"></tags>

While we are at it, it will be great if we can pass non strings as props, so we can just do this. Since props are just private to the webc runtime, this should not lead to any issues in the output.

<tags @value="tags"></tags>
@zachleat zachleat added the enhancement New feature or request label Feb 10, 2023
@zachleat zachleat self-assigned this Feb 10, 2023
@zachleat zachleat added this to the WebC v0.9.0 milestone Feb 15, 2023
@zachleat
Copy link
Member

zachleat commented Feb 15, 2023

WebC v0.9.0 will feature a new :@ prefix (e.g. :@value="tags.join(',')") for dynamic properties, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants