docs(core): fix examples

This commit is contained in:
vsavkin
2016-09-14 14:12:10 -07:00
committed by Igor Minar
parent 785292f44f
commit 003294d5df
2 changed files with 3 additions and 5 deletions

View File

@ -7,7 +7,7 @@
*/
// #docregion HowTo
import {AfterContentInit, Component, ContentChildren, Directive, QueryList} from '@angular/core';
import {AfterContentInit, Component, ContentChild, Directive, QueryList} from '@angular/core';
@Directive({selector: 'child-directive'})
class ChildDirective {
@ -15,7 +15,7 @@ class ChildDirective {
@Directive({selector: 'someDir'})
class SomeDir implements AfterContentInit {
@ContentChild(ChildDirective) contentChild;
@ContentChild(ChildDirective) contentChild: ChildDirective;
ngAfterContentInit() {
// contentChild is set