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

Give an id to wire instead of a type? #68

Closed
JSteunou opened this issue Jul 12, 2017 · 2 comments
Closed

Give an id to wire instead of a type? #68

JSteunou opened this issue Jul 12, 2017 · 2 comments
Labels

Comments

@JSteunou
Copy link

JSteunou commented Jul 12, 2017

What happens if I'm using the same data object for 2 differents div? I understand I can use wire(obj, ':div') new syntax, but if my 2 templates are divs, is that gonna be useful?

@WebReflection
Copy link
Owner

:div can be :1 and :2 ... it's an ID , nothing to do with the content

@JSteunou
Copy link
Author

Hoooo ok, I though it as to be the same like in the readme / examples. Also I read through the code very quickly and so type along with html & svg so I though it was very tight.

Thank you for the enlightenment 🙏

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

No branches or pull requests

2 participants