Angular

What it does

Configures a view query.

How to use

.

import {AfterViewInit, Component, Directive, QueryList, ViewChildren} from '@angular/core'; @Directive({selector: 'child-directive'}) class ChildDirective { } @Component({selector: 'someCmp', templateUrl: 'someCmp.html'}) class SomeCmp implements AfterViewInit { @ViewChildren(ChildDirective) viewChildren: QueryList<ChildDirective>; ngAfterViewInit() { // viewChildren is set } }

Description

exported from core/index defined in core/src/metadata/di.ts