I wondered how I can yield the complete block which I pass to my component. I already found this https://guides.emberjs.com/v2.9.0/components/block-params/ but I don't understand why there is
//my-component.hbs
{{#if hasBlock}}
{{yield post.title}}
{{yield post.body}}
{{yield post.author}} ...
Why I have to name what I want to yield? That makes no sense because I want to yield (display) the whole block which I pass to the component, regardless what I do there.
So I tried just to use yield only:
//my-component.hbs
{{#if hasBlock}}
{{yield}} ...
and use the component this way:
//myroute.hbs
{{#my-component car=model}}
{{car.name}} - {{car.color}}
{{/my-component}}
This doesn't work, but I expected that 'car.name - car.color' will be rendered in the {{yield}} of the component...
Can someone explain me this, please?