I'm trying to call several times the component HTML but without including again the child component in the father component.
I need it to be like this:
<father-component>
<child-component #id>
<button (click) = "#id.show()">
</father-component>
The html in the child component is hidden untill i press the button.
The thing is that i want to show the html of the child component as many times as the button is pressed.
As far as i know, the @ViewChild instantiates the html only one time, so if i try to append that html to another div, it will append the same. I need to know if there's a way to Instantiate a new @ViewChild anytime i call a function.