-
Notifications
You must be signed in to change notification settings - Fork 4
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
component naming #1
Comments
I think it's particularly confusing to me because of the similarity to rails's content_for method. If you wanted to get fancy you might be able to use ember's new hasBlock property, such that you only expose one component, when used in block form it is treated as input, and when used without a block it is output |
Definitely open for some bikeshedding on the naming, I also want to use the new positional parameters stuff in Canary soon so you don't need the I'm 👎 on using the same component name for both the input and output because that would make the component itself pretty messy (having all code mixed up in the same component).
|
My imagination for how the "one-component" version would work is to delegate to two different (internal) components in the if/else with hasBlock. Not sure how implementing it would actually play out though. |
I think having a block format for the |
-content
and-for
don't immediately resonate with which side of the wormhole is represented.how about something like
portal-input
andportal-output
?The text was updated successfully, but these errors were encountered: