fix(upgrade): propagate return value of resumeBootstrap (#22754)

Fixes #22723

PR Close #22754
This commit is contained in:
Jason Bedard
2018-03-14 00:17:09 -07:00
committed by Alex Rickabaugh
parent ff34d5ea7a
commit a2330ff2db
4 changed files with 46 additions and 3 deletions

View File

@ -389,8 +389,9 @@ export class UpgradeAdapter {
const originalResumeBootstrap: () => void = windowAngular.resumeBootstrap;
windowAngular.resumeBootstrap = function() {
windowAngular.resumeBootstrap = originalResumeBootstrap;
windowAngular.resumeBootstrap.apply(this, arguments);
const r = windowAngular.resumeBootstrap.apply(this, arguments);
resolve();
return r;
};
} else {
resolve();

View File

@ -268,7 +268,7 @@ export class UpgradeModule {
windowAngular.resumeBootstrap = function() {
let args = arguments;
windowAngular.resumeBootstrap = originalResumeBootstrap;
ngZone.run(() => { windowAngular.resumeBootstrap.apply(this, args); });
return ngZone.run(() => windowAngular.resumeBootstrap.apply(this, args));
};
}
}