How to use multiple yields in Ember to display header, body, footer in different places? Added below a sample code for reference. But not working and throws the error saying,
Assertion Failed: A helper named "ib.footer" could not be found
components/common/info-bar-footer.hbs:
{{yield}}
components/common/info-bar-header.hbs:
{{yield}}
components/common/info-bar.hbs:
<div class="info-bar" style="display: {{if isopen 'block' 'none'}}">
<div class="info-bar-header">
<button class="btn-close" data-dismiss="info-bar" {{action "handleCloseInfoBar"}}>x</button>
{{yield (hash header=(component "common/info-bar-header"))}}
</div>
<div class="info-bar-footer">
{{yield (hash footer=(component "common/info-bar-footer"))}}
</div>
</div>
templates/home.hbs:
{{#common/info-bar isopen=true as |ib|}}
{{#ib.header}}
<p class="info-content">
Hello, nice to see you again
</p>
{{/ib.header}}
{{#ib.footer}}
<button class="btn-default">Ok</button>
{{/ib.footer}}
{{/common/info-bar}}