Revert "fix(ngUpgrade): prevent digest already in progress (#9046)"
This reverts commit d1c989b8a5
.
Breaks a Karma test.
This commit is contained in:
parent
d1c989b8a5
commit
c197e2bb42
|
@ -26,7 +26,6 @@ export interface IRootScopeService {
|
|||
$apply(): any;
|
||||
$apply(exp: string): any;
|
||||
$apply(exp: Function): any;
|
||||
$applyAsync(): any;
|
||||
$$childTail: IScope;
|
||||
$$childHead: IScope;
|
||||
$$nextSibling: IScope;
|
||||
|
|
|
@ -366,7 +366,7 @@ export class UpgradeAdapter {
|
|||
(injector: angular.IInjectorService, rootScope: angular.IRootScopeService) => {
|
||||
ng1Injector = injector;
|
||||
ngZone.onMicrotaskEmpty.subscribe(
|
||||
{next: (_) => ngZone.runOutsideAngular(() => rootScope.$applyAsync())});
|
||||
{next: (_) => ngZone.runOutsideAngular(() => rootScope.$apply())});
|
||||
UpgradeNg1ComponentAdapterBuilder.resolve(this.downgradedComponents, injector)
|
||||
.then(resolve, reject);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue