The issue at hand is:
I am trying to selectively import the NoopAnimationsModule only when I'm using Internet Explorer. In my app.module's imports array, I currently have:
imports: [AppConfig.IS_IE ? NoopAnimationsModule : BrowserAnimationsModule, .... ]
While this setup works during development, it encounters problems in production. I suspect that AOT compilation may be causing issues, placing the import before reaching the browser.
After some deliberation, I realized that importing both modules and configuring them at runtime might be a viable solution to determine which module's providers to use.
It's important to note that both of these modules offer similar services but differ in how they handle animations in Angular.
Is there a way to successfully implement this approach?