How to get the name or instance of the child component in patent component in angular?

Discussão em 'Angular' iniciado por Pallavi, Março 15, 2025.

  1. Pallavi

    Pallavi Guest

    Suppose I have three components: P1, C1, and C2.

    When constructor or Child C1 get called with super we call the constructor of parent P1 component similarly for C2 child, now I want to know from which child (C1/C2) the parent constructor get called.

    How to get the name or instance of the child component in patent component in angular?

    Continue reading...

Compartilhe esta Página