ContentChildrenMetadata

export class ContentChildrenMetadata

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

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 } }

Constructor

constructor(_selector: Type | string, {descendants = false}?: {descendants?: boolean})

Not Yet Documented