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

Support setting custom attributes #55

Open
tusharmath opened this issue Aug 25, 2016 · 1 comment
Open

Support setting custom attributes #55

tusharmath opened this issue Aug 25, 2016 · 1 comment

Comments

@tusharmath
Copy link

tusharmath commented Aug 25, 2016

as of now there is no way to do something like this —

<x-my-web-component something-awesome="whish this worked!" />

Can hyperscript support custom attributes as well? This is extremely useful when writing webcomponents.

Thanks!

@dominictarr
Copy link
Collaborator

you should be able to do that since I merged this: #33

h('x-my-web-component', {attrs: {'something-awesome': 'wish this worked!'}})

with [email protected]

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

No branches or pull requests

2 participants