Currently the only way to disable animations is by providing the `NoopAnimationsModule` which doesn't allow for it to be disabled based on runtime information. These changes add support for disabling animations based on runtime information by using `BrowserAnimationsModule.withConfig({disableAnimations: true})`. PR Close #40731
13 lines
398 B
TypeScript
13 lines
398 B
TypeScript
export declare const ANIMATION_MODULE_TYPE: InjectionToken<"NoopAnimations" | "BrowserAnimations">;
|
|
|
|
export declare class BrowserAnimationsModule {
|
|
static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>;
|
|
}
|
|
|
|
export declare interface BrowserAnimationsModuleConfig {
|
|
disableAnimations?: boolean;
|
|
}
|
|
|
|
export declare class NoopAnimationsModule {
|
|
}
|