docs(core): fix examples
This commit is contained in:
parent
785292f44f
commit
003294d5df
|
@ -18,9 +18,7 @@ import {ViewEncapsulation} from './metadata/view';
|
||||||
import {Type} from './type';
|
import {Type} from './type';
|
||||||
import {TypeDecorator, makeParamDecorator, makePropDecorator} from './util/decorators';
|
import {TypeDecorator, makeParamDecorator, makePropDecorator} from './util/decorators';
|
||||||
|
|
||||||
export {ANALYZE_FOR_ENTRY_COMPONENTS, Attribute, ContentChild, ContentChildren, Query, ViewChild, ViewChildren,
|
export {ANALYZE_FOR_ENTRY_COMPONENTS, Attribute, ContentChild, ContentChildDecorator, ContentChildren, ContentChildrenDecorator, Query, ViewChild, ViewChildDecorator, ViewChildren, ViewChildrenDecorator} from './metadata/di';
|
||||||
ContentChildDecorator, ContentChildrenDecorator, ViewChildDecorator, ViewChildrenDecorator
|
|
||||||
} from './metadata/di';
|
|
||||||
export {Component, Directive, HostBinding, HostListener, Input, Output, Pipe} from './metadata/directives';
|
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 {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';
|
export {CUSTOM_ELEMENTS_SCHEMA, ModuleWithProviders, NO_ERRORS_SCHEMA, NgModule, SchemaMetadata} from './metadata/ng_module';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// #docregion HowTo
|
// #docregion HowTo
|
||||||
import {AfterContentInit, Component, ContentChildren, Directive, QueryList} from '@angular/core';
|
import {AfterContentInit, Component, ContentChild, Directive, QueryList} from '@angular/core';
|
||||||
|
|
||||||
@Directive({selector: 'child-directive'})
|
@Directive({selector: 'child-directive'})
|
||||||
class ChildDirective {
|
class ChildDirective {
|
||||||
|
@ -15,7 +15,7 @@ class ChildDirective {
|
||||||
|
|
||||||
@Directive({selector: 'someDir'})
|
@Directive({selector: 'someDir'})
|
||||||
class SomeDir implements AfterContentInit {
|
class SomeDir implements AfterContentInit {
|
||||||
@ContentChild(ChildDirective) contentChild;
|
@ContentChild(ChildDirective) contentChild: ChildDirective;
|
||||||
|
|
||||||
ngAfterContentInit() {
|
ngAfterContentInit() {
|
||||||
// contentChild is set
|
// contentChild is set
|
||||||
|
|
Loading…
Reference in New Issue