Cristopher Coronado
How do you reference a child component in a component ts file?
By Cristopher Coronado in Angular on Aug 04 2020
  • Kiran Mohanty
    Sep, 2020 2

    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;

    • 0

Most Popular Job Functions


MOST LIKED QUESTIONS