I have a component called CardComponent with following markup
<div class="header">
<!-- My card style header -->
</div>
<div class="content">
<ng-content></ng-content>
<div>
<div class="footer">
<!-- My card style footer -->
<!-- Need a button here (explained below) -->
</div>
I'm using this as following
<card>
<component-a></component-a>
</card>
<card>
<component-b></component-b>
</card>
It works fine. However, I need to add a button in the card footer which will call a method of the respective child component.
For example, the button on the first card will call a function in component-a and the second in component-b.
can I do this without a pipeline in my main/container component? and also without the need to do a <component-a #var>.