What's the difference between @ViewChild and @ContentChild?

Discussão em 'Angular' iniciado por drew moore, Julho 16, 2025.

  1. drew moore

    drew moore Guest

    Angular 2 provides @ViewChild, @ViewChildren, @ContentChild and @ContentChildren decorators for querying a component's descendant elements.

    What's the difference between the first two and the latter two?

    Continue reading...

Compartilhe esta Página