ContentChildren: ContentChildrenFactory

export ContentChildren : ContentChildrenFactory

exported from angular2/core defined in angular2/src/core/metadata.ts (line 1074)

Configures a content query.

Content queries are set before the ngAfterContentInit callback is called.

Example

@Directive({
  selector: 'someDir'
})
class SomeDir {
  @ContentChildren(ChildDirective) contentChildren: QueryList<ChildDirective>;

  ngAfterContentInit() {
    // contentChildren is set
  }
}