1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Get directive of component from another component

Discussão em 'Angular' iniciado por Yassine Klilich, Outubro 1, 2024 às 10:22.

  1. I have the following template:

    <sc-list #list drawer-track> </sc-list>

    <sc-drawer [drawerTrack]="list"></sc-drawer>


    I need to get the host element of sc-list inside sc-drawer component using the drawer-track directive.

    I was trying to use Injector or EnvironmentInjector inside sc-drawer component, but I couldn't figure out how to use it, or maybe there is another approach that I don't know.

    Continue reading...

Compartilhe esta Página