-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathmain.ts
More file actions
32 lines (30 loc) · 1.21 KB
/
main.ts
File metadata and controls
32 lines (30 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
import { importProvidersFrom } from '@angular/core'
import { FormsModule } from '@angular/forms'
import { bootstrapApplication, BrowserModule } from '@angular/platform-browser'
import { provideAnimations } from '@angular/platform-browser/animations'
import { provideRouter, Routes } from '@angular/router'
import { AppComponent } from './app/app.component'
const routes: Routes = [
{ path: '', loadComponent: () => import('./app/home/home.component').then((m) => m.HomeComponent) },
{
path: 'changelog',
loadComponent: () => import('./app/changelog/changelog.component').then((m) => m.ChangelogComponent),
},
{
path: 'documentation',
loadComponent: () => import('./app/documentation/documentation.component').then((m) => m.DocumentationComponent),
},
{
path: 'examples',
loadChildren: () => import('./app/examples/examples.routes').then((m) => m.exampleRoutes),
},
]
bootstrapApplication(AppComponent, {
providers: [
importProvidersFrom(BrowserModule, FormsModule),
provideAnimations(),
provideRouter(routes),
provideHttpClient(withInterceptorsFromDi()),
],
}).catch((err) => console.error(err))