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

How to define a component, but not name it, and let end user name it? #176

Open
trusktr opened this issue Jul 19, 2017 · 1 comment
Open

Comments

@trusktr
Copy link

trusktr commented Jul 19, 2017

For example, with vanilla Web Components, I can ship this:

class FooBar extends HTMLElement {...}

then tell end users to use it like this:

customElements.define('foo-bar', FooBar) // but they can use any name they want
// ... use the element ...

How would I do this with X-Tags?

@csuwildcat
Copy link
Member

This is coming in v2 - there is a create and register call where you can separate the two. Create can output just a computed class, and they you can register it with whatever name you choose.

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