refactor(upgrade): remove redundant call to appRef.detach()
Once a `ViewRef` is attached to the `ApplicationRef`, destroying the corresponding `ComponentRef` will automatically detach the `ViewRef`.
This commit is contained in:

committed by
Alex Rickabaugh

parent
4e6aa9c2db
commit
29dbc3b67c
@ -115,7 +115,7 @@ export function downgradeComponent(info: {
|
||||
facade.createComponent(projectableNodes);
|
||||
facade.setupInputs(needsNgZone, info.propagateDigest);
|
||||
facade.setupOutputs();
|
||||
facade.registerCleanup(needsNgZone);
|
||||
facade.registerCleanup();
|
||||
|
||||
injectorPromise.resolve(facade.getInjector());
|
||||
|
||||
|
Reference in New Issue
Block a user