1
Reply

How do you reference a child component in a component ts file?

    you need to add child component selector in parent component template . Ex:- parent.component.html

    If you wish to access child component methods, then you will have to add below code in parent component.@ViewChild('child', { static: false }) childComp: ChildComponent;