feat(common): mark NgTemplateOutlet API as stable

This commit is contained in:
Pawel Kozlowski 2017-08-09 14:29:17 +02:00 committed by Hans
parent 64b4be9670
commit 0a73e8d062
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ import {Directive, EmbeddedViewRef, Input, OnChanges, SimpleChange, SimpleChange
* *
* {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'} * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}
* *
* @experimental * @stable
*/ */
@Directive({selector: '[ngTemplateOutlet]'}) @Directive({selector: '[ngTemplateOutlet]'})
export class NgTemplateOutlet implements OnChanges { export class NgTemplateOutlet implements OnChanges {
@ -72,7 +72,7 @@ export class NgTemplateOutlet implements OnChanges {
* - templateRef has changed * - templateRef has changed
* - context has changes * - context has changes
* *
* To mark context object as changed when the corresponding object * We mark context object as changed when the corresponding object
* shape changes (new properties are added or existing properties are removed). * shape changes (new properties are added or existing properties are removed).
* In other words we consider context with the same properties as "the same" even * In other words we consider context with the same properties as "the same" even
* if object reference changes (see https://github.com/angular/angular/issues/13407). * if object reference changes (see https://github.com/angular/angular/issues/13407).

View File

@ -240,7 +240,7 @@ export declare class NgSwitchDefault {
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch); constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
} }
/** @experimental */ /** @stable */
export declare class NgTemplateOutlet implements OnChanges { export declare class NgTemplateOutlet implements OnChanges {
/** @deprecated */ ngOutletContext: Object; /** @deprecated */ ngOutletContext: Object;
ngTemplateOutlet: TemplateRef<any>; ngTemplateOutlet: TemplateRef<any>;