From 14ee75924b6ae770115f7f260d720efa8bfb576a Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Wed, 14 Sep 2016 15:41:44 +0200 Subject: [PATCH] fix(common): fix ngOnChanges signature of NgTemplateOutlet directive --- modules/@angular/common/src/directives/ng_template_outlet.ts | 4 ++-- tools/public_api_guard/common/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/@angular/common/src/directives/ng_template_outlet.ts b/modules/@angular/common/src/directives/ng_template_outlet.ts index fe1a73cc12..0804793698 100644 --- a/modules/@angular/common/src/directives/ng_template_outlet.ts +++ b/modules/@angular/common/src/directives/ng_template_outlet.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Directive, EmbeddedViewRef, Input, OnChanges, TemplateRef, ViewContainerRef} from '@angular/core'; +import {Directive, EmbeddedViewRef, Input, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef} from '@angular/core'; /** * @ngModule CommonModule @@ -44,7 +44,7 @@ export class NgTemplateOutlet implements OnChanges { @Input() set ngTemplateOutlet(templateRef: TemplateRef) { this._templateRef = templateRef; } - ngOnChanges() { + ngOnChanges(changes: SimpleChanges) { if (this._viewRef) { this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)); } diff --git a/tools/public_api_guard/common/index.d.ts b/tools/public_api_guard/common/index.d.ts index 8aa99f0ece..bdff3ab4af 100644 --- a/tools/public_api_guard/common/index.d.ts +++ b/tools/public_api_guard/common/index.d.ts @@ -181,7 +181,7 @@ export declare class NgTemplateOutlet implements OnChanges { ngOutletContext: Object; ngTemplateOutlet: TemplateRef; constructor(_viewContainerRef: ViewContainerRef); - ngOnChanges(): void; + ngOnChanges(changes: SimpleChanges): void; } /** @stable */