Skip to content

Commit fc30d4c

Browse files
jelbournandrewseguin
authored andcommitted
chore: correct comment in in dom-port-host (#1917)
1 parent 0cf34e2 commit fc30d4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/core/portal/dom-portal-host.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export class DomPortalHost extends BasePortalHost {
4343
} else {
4444
componentRef = componentFactory.create(portal.injector || this._defaultInjector);
4545

46-
// ApplicationRef's attachView and detachView methods are in Angular ^2.2.1 but not before.
47-
// The `else` clause here can be removed once 2.2.1 is released.
46+
// ApplicationRef's attachView and detachView methods are in Angular ^2.3.0 but not before.
47+
// The `else` clause here can be removed once 2.3.0 is released.
4848
if ((this._appRef as any)['attachView']) {
4949
(this._appRef as any).attachView(componentRef.hostView);
5050

@@ -55,7 +55,7 @@ export class DomPortalHost extends BasePortalHost {
5555
} else {
5656
// When creating a component outside of a ViewContainer, we need to manually register
5757
// its ChangeDetector with the application. This API is unfortunately not published
58-
// in Angular <= 2.2.0. The change detector must also be deregistered when the component
58+
// in Angular < 2.3.0. The change detector must also be deregistered when the component
5959
// is destroyed to prevent memory leaks.
6060
let changeDetectorRef = componentRef.changeDetectorRef;
6161
(this._appRef as any).registerChangeDetector(changeDetectorRef);

0 commit comments

Comments
 (0)