I’m feeling enamored with the new contextual components, and there’s something I’d like to try to do, but I’m not sure it’s possible. Basically, you can hard-code in a contextual component like this:
{{yield (hash
close-button=(component 'alert-box-button' onclick=(action 'close'))
)}}
But what if I wanted to yield additional components by iterating over an array? Something like:
{{yield (hash
{{#each componentNames as |componentName|}}
componentName=(component componentName onclick=(action 'close'))
{{/each}}
)}}
Pie in the sky impossible, right? But maybe there’s a way to pull this off? If there is, please let me know!