What I need is to have something like this,
<button (click)="onClick($event)">Aca <app-Recibos></app-Recibos></button>
You can see that I am a newbie with angular I do not know if it can be done or any suggestion to perform this action.
what I want is to bring the component in the html where I have the buttons and close it again, it would be something like a modalwindow.
Your onClick method could change the state of a flag:
And in your template you could have something like
It's an easy option to implement, but if you want a real modal I recommend looking at angular material or ng-bootstrap, they both have ways to create modals in their component catalog.