The provided content outlines various Angular directives and components, focusing on annotations related to querying elements in the template or projected content. The annotations include `@
@ViewChild('myname', { read: ViewContainerRef }) target;
- ViewContainerRef
- ElementRef
- Component or Directive name
descendants
@ContentChildren() // is the only one that allows to also query for descendants
@ContentChildren(SomeTypeOrVarName, {descendants: true}) someField;
*true // for ViewChild & ViewChildren
*false // for ContentChild & ContentChildren
@ViewChild() // supports directive or component type as parameter, or the name (string) of a template variable.
@ViewChildren() // also supports a list of names as comma separated list (currently no spaces allowed @ViewChildren('var1,var2,var3')).
@ContentChild() and @ContentChildren() // do the same but in the light DOM ( projected elements).