Interviews1 answer
How do you reference a child component in a component ts file?
1 Answer
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;
Kiran MohantyPosted Sep 1, 2020, 11:36 PM EDT

