refactor(core): Migrate TestBed.get to TestBed.inject (#32382)
This is cleanup/followup for PR #32200 PR Close #32382
This commit is contained in:

committed by
Matias Niemelä

parent
a64eded521
commit
9166baf709
@ -1318,7 +1318,7 @@ export class TransitionAnimationEngine {
|
||||
const previousPlayers = this._getPreviousPlayers(
|
||||
element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);
|
||||
previousPlayers.forEach(player => {
|
||||
const realPlayer = player.getRealPlayer() as any;
|
||||
const realPlayer = (player as TransitionAnimationPlayer).getRealPlayer() as any;
|
||||
if (realPlayer.beforeDestroy) {
|
||||
realPlayer.beforeDestroy();
|
||||
}
|
||||
|
Reference in New Issue
Block a user