-
Notifications
You must be signed in to change notification settings - Fork 6.8k
/
Copy pathmain.ts
24 lines (22 loc) · 997 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {importProvidersFrom} from '@angular/core';
import {AppComponent} from './app/app.component';
import {MatNativeDateModule} from '@angular/material/core';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import {routes} from './app/app-routes';
import {BrowserModule, bootstrapApplication} from '@angular/platform-browser';
import {DOCUMENT} from '@angular/common';
import {SceneOverlayContainer} from './app/scene-overlay-container';
import {Platform} from '@angular/cdk/platform';
import {OverlayContainer} from '@angular/cdk/overlay';
import {provideRouter} from '@angular/router';
bootstrapApplication(AppComponent, {
providers: [
importProvidersFrom(BrowserModule, MatNativeDateModule, NoopAnimationsModule),
{
provide: OverlayContainer,
useFactory: (doc: any, platform: Platform) => new SceneOverlayContainer(doc, platform),
deps: [DOCUMENT, Platform],
},
provideRouter(routes),
],
}).catch(err => console.error(err));