-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathapp.config.ts
More file actions
30 lines (29 loc) · 699 Bytes
/
Copy pathapp.config.ts
File metadata and controls
30 lines (29 loc) · 699 Bytes
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
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { BarComponent } from './bar.component';
import { FooComponent } from './foo.component';
import { MainNavigationComponent } from './main-navigation.component';
export const appConfig: ApplicationConfig = {
providers: [
provideRouter([
{
path: '',
component: MainNavigationComponent,
outlet: 'side',
},
{
path: '',
pathMatch: 'full',
redirectTo: 'foo',
},
{
path: 'foo',
component: FooComponent,
},
{
path: 'bar',
component: BarComponent,
},
]),
],
};