@bttf wrote:
If a component has two or three levels of descendant components, it can get a little annoying when having to pass down a parameter that is only needed by the last descendant all the way through the chain.
Using the
{{yield}}
helper can eliminate some of the cruft by allowing me to declare the nested component within the scope of the parent container. The only problem I am having now is that I cannot have multiple yield 'outlets' ... If I wanted to nest multiple components in different parts of the containing component's template I would be unable to (AFAIK).The new contextual component feature in 2.3 seems like it might make things easier with the
(hash
and(component
helpers but I am still limited by only having one{{yield}}
"outlet" in a template. Does anyone have advice for this predicament and or a better way of seeing things? Thanks in advance.
Posts: 2
Participants: 2