You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There doesn't seem to be a way to use components in child and sibling contexts from within the spec. Once everything is wired you can of course use them with childContext.someComponent but you can't do that from the spec.
Currently you can only use top-level components from ancestor contexts. This includes any child contexts declared in the ancestor contexts; however, you can't directly use any components from them.
A good use for this would be namespacing. For example, if I had a bunch of controllers that I needed to use throughout my application, I could register them under a child context called controller. Then I could just use the components in controller in my spec with "controller.post" or "controller.user" etc. instead of "polluting" the parent namespace with lots of controller names.
The text was updated successfully, but these errors were encountered:
There doesn't seem to be a way to use components in child and sibling contexts from within the spec. Once everything is wired you can of course use them with
childContext.someComponent
but you can't do that from the spec.I'd like to propose this:
Currently you can only use top-level components from ancestor contexts. This includes any child contexts declared in the ancestor contexts; however, you can't directly use any components from them.
A good use for this would be namespacing. For example, if I had a bunch of controllers that I needed to use throughout my application, I could register them under a child context called
controller
. Then I could just use the components incontroller
in my spec with"controller.post"
or"controller.user"
etc. instead of "polluting" the parent namespace with lots of controller names.The text was updated successfully, but these errors were encountered: