ContentChild: ContentChildFactory

export ContentChild : ContentChildFactory

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

Configures a content query.

Content queries are set before the ngAfterContentInit callback is called.

Example

@Directive({
  selector: 'someDir'
})
class SomeDir {
  @ContentChild(ChildDirective) contentChild;

  ngAfterContentInit() {
    // contentChild is set
  }
}