The problem is:
I want to import the NoopAnimationsModule only when I'm on an IE. In my app.module's imports array I have something like:
imports: [AppConfig.IS_IE ? NoopAnimationsModule : BrowserAnimationsModule, .... ]
This works during the development but not in the production. I guess it has to do about the AOT compilation when the import gets place before the code reaches the browser.
I came to the conclusion that I have to import both of them and configure something the during the runtime in order to decide which module's providers should I use.
Keep in mind that both of these modules provide the same services but with differences in order to change the way Angular handles the animation.
Is there a way to implement this idea?