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

Allow companion objects for components #91

Open
jokade opened this issue Apr 2, 2016 · 0 comments
Open

Allow companion objects for components #91

jokade opened this issue Apr 2, 2016 · 0 comments
Assignees
Milestone

Comments

@jokade
Copy link
Owner

jokade commented Apr 2, 2016

If possible, we should allow companion objects for components:

@Component("foo")
class FooComp {
  /* ... */
}

object FooComp {
  /* ... */
}

Since the resulting companion after macro expansion extends js.Object there will still be limitations on what can be defined inside the companion.

@jokade jokade self-assigned this Apr 2, 2016
@jokade jokade added this to the 0.3 milestone Apr 2, 2016
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

1 participant