How to instantiate and apply directives programmatically?

Discussão em 'Angular' iniciado por lqbweb, Março 19, 2025.

  1. lqbweb

    lqbweb Guest

    I know that in ng2 we have ComponentFactoryResolver that can resolve factories that we can apply to a ViewContainerRef.

    But, is there something similar for directives? a way to instantiate them and apply them to the projected content from a component?

    Continue reading...

Compartilhe esta Página