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

Determine if ng-content selector matched anything

Discussão em 'Angular' iniciado por Gargoyle, Junho 9, 2025.

  1. Gargoyle

    Gargoyle Guest

    When using content projection with a selector, like so:

    <ng-content select="[appChecklistTitle]">


    How can I tell whether or not anything was matched? Basically I want an, "If content provided put it here, otherwise use some default content".

    Continue reading...

Compartilhe esta Página