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

Is <ng-container> a structural directive?

Discussão em 'Angular' iniciado por ananya-singh-afk, Outubro 11, 2024.

  1. I don't think so. I was asked this in an interview and I answered saying that does what the name suggests, it acts as a container and nothing more. According to the official documentation on Angular website - Documentation

    The allows us to use structural directives without any extra element, making sure that the only DOM changes being applied are those dictated by the directives themselves.

    It isn't a structural directive in angular right?

    Continue reading...

Compartilhe esta Página