|
1 |
| -import {importProvidersFrom} from '@angular/core'; |
2 |
| - |
3 | 1 | import {AppComponent} from './app/app.component';
|
4 |
| -import {MatNativeDateModule} from '@angular/material/core'; |
5 |
| -import {NoopAnimationsModule} from '@angular/platform-browser/animations'; |
| 2 | +import {provideNativeDateAdapter, MATERIAL_ANIMATIONS} from '@angular/material/core'; |
6 | 3 | import {routes} from './app/app-routes';
|
7 |
| -import {BrowserModule, bootstrapApplication} from '@angular/platform-browser'; |
8 |
| -import {DOCUMENT} from '@angular/common'; |
| 4 | +import {bootstrapApplication} from '@angular/platform-browser'; |
9 | 5 | import {SceneOverlayContainer} from './app/scene-overlay-container';
|
10 |
| -import {Platform} from '@angular/cdk/platform'; |
11 | 6 | import {OverlayContainer} from '@angular/cdk/overlay';
|
12 | 7 | import {provideRouter} from '@angular/router';
|
13 | 8 |
|
14 | 9 | bootstrapApplication(AppComponent, {
|
15 | 10 | providers: [
|
16 |
| - importProvidersFrom(BrowserModule, MatNativeDateModule, NoopAnimationsModule), |
| 11 | + provideNativeDateAdapter(), |
17 | 12 | {
|
18 | 13 | provide: OverlayContainer,
|
19 |
| - useFactory: (doc: any, platform: Platform) => new SceneOverlayContainer(doc, platform), |
20 |
| - deps: [DOCUMENT, Platform], |
| 14 | + useClass: SceneOverlayContainer, |
| 15 | + }, |
| 16 | + { |
| 17 | + provide: MATERIAL_ANIMATIONS, |
| 18 | + useValue: {animationsDisabled: true}, |
21 | 19 | },
|
22 | 20 | provideRouter(routes),
|
23 | 21 | ],
|
|
0 commit comments