From 003294d5dfcc6506802c18822b6842ff07ed8356 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Wed, 14 Sep 2016 14:12:10 -0700 Subject: [PATCH] docs(core): fix examples --- modules/@angular/core/src/metadata.ts | 4 +--- .../examples/core/di/ts/contentChild/content_child_howto.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/@angular/core/src/metadata.ts b/modules/@angular/core/src/metadata.ts index 41d51d8d94..632fb0a970 100644 --- a/modules/@angular/core/src/metadata.ts +++ b/modules/@angular/core/src/metadata.ts @@ -18,9 +18,7 @@ import {ViewEncapsulation} from './metadata/view'; import {Type} from './type'; import {TypeDecorator, makeParamDecorator, makePropDecorator} from './util/decorators'; -export {ANALYZE_FOR_ENTRY_COMPONENTS, Attribute, ContentChild, ContentChildren, Query, ViewChild, ViewChildren, - ContentChildDecorator, ContentChildrenDecorator, ViewChildDecorator, ViewChildrenDecorator -} from './metadata/di'; +export {ANALYZE_FOR_ENTRY_COMPONENTS, Attribute, ContentChild, ContentChildDecorator, ContentChildren, ContentChildrenDecorator, Query, ViewChild, ViewChildDecorator, ViewChildren, ViewChildrenDecorator} from './metadata/di'; export {Component, Directive, HostBinding, HostListener, Input, Output, Pipe} from './metadata/directives'; export {AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, DoCheck, OnChanges, OnDestroy, OnInit} from './metadata/lifecycle_hooks'; export {CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders, NO_ERRORS_SCHEMA, NgModule, SchemaMetadata} from './metadata/ng_module'; diff --git a/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts b/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts index da2d0e9475..2168fdab2f 100644 --- a/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts +++ b/modules/@angular/examples/core/di/ts/contentChild/content_child_howto.ts @@ -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