1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Tracking when dynamic structure of componentes is fully rendered in Angular

Discussão em 'Angular' iniciado por Raziel, Julho 14, 2025.

  1. Raziel

    Raziel Guest

    I have a nested structure of compononents in form of JSON that i receive from API.

    componentStructure$ = apiCall();


    the JSON looks like

    structure = {
    component,
    innerComponents: [{
    component,
    ...
    }]}


    Then the structure is being created via methods like:

    createComponent()


    and viewContainerRef. The problem is I need to be 100% certain that the whole structure was created and attached in order to perform additional operation. I was trying to use appRef.isStable observable but it was to no avail.

    What would be a proper way of ensuring that the structure is created with 100% certainty so I can perform additional operations.

    Continue reading...

Compartilhe esta Página