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:
George Kalpakas
2017-09-25 13:22:35 +03:00
committed by Alex Rickabaugh
parent 4e6aa9c2db
commit 29dbc3b67c
3 changed files with 52 additions and 9 deletions

View File

@ -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());