mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 13:23:02 -05:00
31 lines
699 B
TypeScript
31 lines
699 B
TypeScript
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,
|
|
},
|
|
]),
|
|
],
|
|
};
|