From fc30d4cfce55e555226f113d52c11e3a7efb2003 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Tue, 22 Nov 2016 09:52:41 -0800 Subject: [PATCH] chore: correct comment in in dom-port-host (#1917) --- src/lib/core/portal/dom-portal-host.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/core/portal/dom-portal-host.ts b/src/lib/core/portal/dom-portal-host.ts index 2e2424fa15b..8d56de903ee 100644 --- a/src/lib/core/portal/dom-portal-host.ts +++ b/src/lib/core/portal/dom-portal-host.ts @@ -43,8 +43,8 @@ export class DomPortalHost extends BasePortalHost { } else { componentRef = componentFactory.create(portal.injector || this._defaultInjector); - // ApplicationRef's attachView and detachView methods are in Angular ^2.2.1 but not before. - // The `else` clause here can be removed once 2.2.1 is released. + // ApplicationRef's attachView and detachView methods are in Angular ^2.3.0 but not before. + // The `else` clause here can be removed once 2.3.0 is released. if ((this._appRef as any)['attachView']) { (this._appRef as any).attachView(componentRef.hostView); @@ -55,7 +55,7 @@ export class DomPortalHost extends BasePortalHost { } else { // When creating a component outside of a ViewContainer, we need to manually register // its ChangeDetector with the application. This API is unfortunately not published - // in Angular <= 2.2.0. The change detector must also be deregistered when the component + // in Angular < 2.3.0. The change detector must also be deregistered when the component // is destroyed to prevent memory leaks. let changeDetectorRef = componentRef.changeDetectorRef; (this._appRef as any).registerChangeDetector(changeDetectorRef);