fix(upgrade): correctly run change detection when propagateDigest is false

This commit is contained in:
George Kalpakas
2017-09-25 16:10:23 +03:00
committed by Alex Rickabaugh
parent 546eb7d851
commit 617b3d2ba5
2 changed files with 38 additions and 2 deletions

View File

@ -151,7 +151,7 @@ export class DowngradeComponentAdapter {
}
// Attach the view so that it will be dirty-checked.
if (needsNgZone) {
if (needsNgZone || !propagateDigest) {
const appRef = this.parentInjector.get<ApplicationRef>(ApplicationRef);
appRef.attachView(this.componentRef.hostView);
}