Permalink
Browse files

fix(common): fix ngOnChanges signature of NgTemplateOutlet directive

  • Loading branch information...
marclaval authored and alexeagle committed Sep 14, 2016
1 parent bd4045b commit 14ee75924b6ae770115f7f260d720efa8bfb576a
@@ -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<Object>) { this._templateRef = templateRef; }
- ngOnChanges() {
+ ngOnChanges(changes: SimpleChanges) {
if (this._viewRef) {
this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef));
}
@@ -181,7 +181,7 @@ export declare class NgTemplateOutlet implements OnChanges {
ngOutletContext: Object;
ngTemplateOutlet: TemplateRef<Object>;
constructor(_viewContainerRef: ViewContainerRef);
- ngOnChanges(): void;
+ ngOnChanges(changes: SimpleChanges): void;
}
/** @stable */

0 comments on commit 14ee759

Please sign in to comment.