mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
55308f2df5
This commit adds the following functions to the public API: - provideAnimations - provideNoopAnimations The goal of those functions is to return a set of providers required to setup animations in an application. The functions are useful when the `bootstrapApplication` function is used to bootstrap an app. The functions allow to avoid the need to import `BrowserAnimationsModule` and `BrowserNoopAnimationsModule` NgModules. PR Close #46793
50 lines
1.5 KiB
Markdown
50 lines
1.5 KiB
Markdown
## API Report File for "@angular/platform-browser_animations"
|
|
|
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
|
|
```ts
|
|
|
|
import { ANIMATION_MODULE_TYPE } from '@angular/core';
|
|
import * as i0 from '@angular/core';
|
|
import * as i1 from '@angular/platform-browser';
|
|
import { ModuleWithProviders } from '@angular/core';
|
|
import { Provider } from '@angular/core';
|
|
|
|
export { ANIMATION_MODULE_TYPE }
|
|
|
|
// @public
|
|
export class BrowserAnimationsModule {
|
|
static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>;
|
|
// (undocumented)
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserAnimationsModule, never>;
|
|
// (undocumented)
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<BrowserAnimationsModule>;
|
|
// (undocumented)
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserAnimationsModule, never, never, [typeof i1.BrowserModule]>;
|
|
}
|
|
|
|
// @public
|
|
export interface BrowserAnimationsModuleConfig {
|
|
disableAnimations?: boolean;
|
|
}
|
|
|
|
// @public
|
|
export class NoopAnimationsModule {
|
|
// (undocumented)
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopAnimationsModule, never>;
|
|
// (undocumented)
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<NoopAnimationsModule>;
|
|
// (undocumented)
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NoopAnimationsModule, never, never, [typeof i1.BrowserModule]>;
|
|
}
|
|
|
|
// @public
|
|
export function provideAnimations(): Provider[];
|
|
|
|
// @public
|
|
export function provideNoopAnimations(): Provider[];
|
|
|
|
// (No @packageDocumentation comment for this package)
|
|
|
|
```
|