-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathmain.ts
20 lines (19 loc) · 874 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Directionality } from '@angular/cdk/bidi';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { bootstrapApplication } from '@angular/platform-browser';
import { provideAnimations } from '@angular/platform-browser/animations';
import { provideRouter, withInMemoryScrolling } from '@angular/router';
import { AppComponent } from './app/app.component';
import { DOCS_APP_ROUTES } from './app/routes';
import { AppDirectionality } from './app/shared';
bootstrapApplication(AppComponent, {
providers: [
provideAnimations(),
provideHttpClient(withInterceptorsFromDi()),
provideRouter(
DOCS_APP_ROUTES,
withInMemoryScrolling({ scrollPositionRestoration: 'enabled', anchorScrolling: 'enabled' })
),
{ provide: Directionality, useClass: AppDirectionality },
],
}).catch(err => console.error(err));