I\'d like to know the best way to do this, and if there are different ways. I\'m trying to call a function in a child component from its parent component. So if I have:
For calling a function of a child, you'll need @ViewChild. However, for showing/hiding a component, you are better off solving this within the template: