You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
works without ivy compilation in Angular v8.
actually not working with Angular 9.2 and ivy compilation.
Description
In a proyect with DinamicLoaderComponents with AdDirective, load a component in container that have a material-sidenav or angular-animations declarations, after deteach this view for save the componentRef to after restore in the same container .
When restore the view the sidenav Animation or animationAngular failed and block it, its necessary change the value of trigger to reset status animation.
🔬 Minimal Reproduction
In the stackblitz explample I use one class (ClientComponent) to instance two components with FactoryResolver, save the componentRef, deteach view in container and after restore in the container with .insert() (comment in code).
Reproduction:
Load component 1 (click "Load Client 1" Button).
Open sidenav and animation (click "TOOGLE SIDENAV" and animationText).
With sidenav open and animation text visible change the view to client2 (click "Load Client 2" Button).
Now restore view Client 1 (click "Load Client 1" Button). ERROR -> Failer animation and sidenav styles its necessary toogle sidenav or animation two times for to working.
Only failed with EnablyIvy option, if disable enableIvy in settings of stackblitz working fine.
🐞 Problems with animations when viewContainerRef change
Affected Package
@angular
Is this a regression?
works without ivy compilation in Angular v8.
actually not working with Angular 9.2 and ivy compilation.
Description
In a proyect with DinamicLoaderComponents with AdDirective, load a component in container that have a material-sidenav or angular-animations declarations, after deteach this view for save the componentRef to after restore in the same container .
When restore the view the sidenav Animation or animationAngular failed and block it, its necessary change the value of trigger to reset status animation.
🔬 Minimal Reproduction
In the stackblitz explample I use one class (ClientComponent) to instance two components with FactoryResolver, save the componentRef, deteach view in container and after restore in the container with .insert() (comment in code).
Reproduction:
ERROR -> Failer animation and sidenav styles its necessary toogle sidenav or animation two times for to working.
Only failed with EnablyIvy option, if disable enableIvy in settings of stackblitz working fine.
https://stackblitz.com/edit/angular-9-bugsanimations?file=src/app/app.component.ts
NOTE:
if i remove alls animations decorators [@---] works too.
🔥 Exception or Error
The animations of angular not working correctly.
🌍 Your Environment
nodeJs v12
Angular Version:
The text was updated successfully, but these errors were encountered: