-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Routable components: step one #11939
Conversation
252866b
to
d69b08c
Compare
let componentName = options && options.component || namePassed && name || route.componentName || name; | ||
let componentLookup = route.container.lookup('component-lookup:main'); | ||
Component = componentLookup.lookupFactory(componentName); | ||
let isGlimmerComponent = Component && Component.proto().isGlimmerComponent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to do Component.isGlimmerComponentFactory
(and do Ember.GlimmerComponent.reopenClass({ isGlimmerComponentFactory: true});
) over Component.proto()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I was just aligning with the existing glimmer-component
branch
I fixed a few issues with Travis (and optional feature tests), can you rebase? |
d69b08c
to
b45b466
Compare
Rebased |
|
||
* `ember-routing-routable-components` | ||
|
||
TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you link to the RFC here (similar to ember-debug-handlers section).
Looks good, we can merge these incrementally. Can you squash commits and prefix with |
… Routable Components
b45b466
to
7c8d59a
Compare
Done and done |
@ef4 @rwjblue @mmun
I consider this a MVP of the Routable Components RFC.
Things of note:
GlimmerComponent
s (isGlimmerComponent
flag checks). Upon completion of the glimmer-component branch, the tests should be updated to use the new base class.Route#attrs
hook for now. These routable components just get created with anattrs
hash containingmodel
.