I’m using the BrowserAnimationModule in Angular to enable the Angular Material DateTimePicker. While the DateTimePicker works fine with this module, it causes issues in other components. If I remove the BrowserAnimationModule from the AppComponent, those other functionalities work correctly, but the DateTimePicker stops working. I also tried using the NoopAnimationModule, but it similarly affects other components.
It seems I have to include either the BrowserAnimationModule or the NoopAnimationModule in the root AppComponent for the DateTimePicker to function. Is there a way to use the BrowserAnimationModule only in a specific component, without adding it to the root component? Specifically, I need it to work only in the component that uses the DateTimePicker.
Akhil khandelwal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.