Topic: Animation providers for a standalone MDB application
Nora Weber
free
asked 2 weeks ago
I am moving an existing module based app to standalone bootstrapping. Some MDB overlays previously depended on the application animation module.
How should that dependency be configured now?
Arkadiusz Idzikowski
staff
answered 2 weeks ago
provideAnimations() can register the animation engine in the providers passed to bootstrapApplication(). Use that root setup instead of retaining a BrowserAnimationsModule import inside an application module that is no longer bootstrapped.
The provider is deprecated, but removing it requires checking whether dependent components still need the animation infrastructure. Please share your bootstrap configuration and the first error from a failing component before changing it further. Switching the application bootstrap does not automatically change animations implemented inside a dependency.
https://angular.dev/api/platform-browser/animations/provideAnimations
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 9.1.0
- Device: Desktop
- Browser: Edge
- OS: Windows 11
- Provided sample code: No
- Provided link: No