fix(ng upgrade): do not compile ng2 components until after ng1 bootstrap (#10084)
Closes #9407 and angular/protractor#2944
This commit is contained in:

committed by
Miško Hevery

parent
d15a1d64e1
commit
9edea0b139
@ -383,11 +383,8 @@ export class UpgradeAdapter {
|
||||
}
|
||||
});
|
||||
|
||||
Promise
|
||||
.all([
|
||||
this.compileNg2Components(compiler, componentFactoryRefMap), ng1BootstrapPromise,
|
||||
ng1compilePromise
|
||||
])
|
||||
Promise.all([ng1BootstrapPromise, ng1compilePromise])
|
||||
.then(() => { return this.compileNg2Components(compiler, componentFactoryRefMap); })
|
||||
.then(() => {
|
||||
ngZone.run(() => {
|
||||
if (rootScopePrototype) {
|
||||
|
Reference in New Issue
Block a user