@angular/[email protected] and earlier
No
If createComponent + attachView are called before bootstrap (example use case: to hydrate certain components on prerendered applications & keep performance good without killing TTI),
the routing animations stop behaving.
Things I noticed:
I have created a repro where you can turn on & off simulateHydration
from the environment.ts
.
How it works:
https://stackblitz.com/edit/angular13-validation-cz7edf?file=src/environments/environment.ts
Animation does not work / behaves differently
ng version
)Angular 15.1.1.
Replicated on Stackblitz.
No response
I made an even simpler Repro:
https://stackblitz.com/edit/angular13-validation-rtevdp?file=src/environments/environment.ts
If I bootstrap any other component (other than AppComponent) first - this can be a dummy component with no template / functionality or deps - animations break inside app component.
ngDoBootstrap() {
this.appRef.bootstrap(HeaderComponent);
this.appRef.bootstrap(AppComponent);
}
If I bootstrap AppComponent first, it's fine:
ngDoBootstrap() {
this.appRef.bootstrap(AppComponent);
this.appRef.bootstrap(HeaderComponent);
}
Any possible workarounds?
Owner Name | angular |
Repo Name | angular |
Full Name | angular/angular |
Language | TypeScript |
Created Date | 2014-09-18 |
Updated Date | 2023-03-21 |
Star Count | 87006 |
Watcher Count | 3028 |
Fork Count | 23170 |
Issue Count | 1418 |
Issue Title | Created Date | Updated Date |
---|