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
The requirement is to be able to render {{first-child}} and {{second-child}} because they're components supplied by the parent-component but not render "hello world." or any other component/data for that matter.
A workaround is today's possible with ember-wormhole where the parent-component can have the following template:
I do not think there is a way to do this, but I'm not really sure why you would want to...
Either way I don't see this as a bug in the framework, which is what we use issues in this repo for. We track feature requests as issues in the github.com/emberjs/rfcs repo (and feature proposals as PR's to the same repo). Would you mind submitting over there?
It looks like the framework doesn't support a default way of whitelisting which components can render within its yield.
The requirement is to be able to render {{first-child}} and {{second-child}} because they're components supplied by the parent-component but not render "hello world." or any other component/data for that matter.
A workaround is today's possible with
ember-wormhole
where the parent-component can have the following template:And the first-child:
While it does achieve the required requirement I think it's important for a framework that offers composability to be able to handle.
Because react requires you to define the template within the render hook you're able to do it quite easily:
Maybe there's a way to do it which I wasn't able to find on StackOverflow nor ember set of documentation.
The text was updated successfully, but these errors were encountered: