mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 21:33:02 -05:00
feat(doc): move bug-cd
This commit is contained in:
30
apps/angular/bug-cd/src/app/app.config.ts
Normal file
30
apps/angular/bug-cd/src/app/app.config.ts
Normal file
@@ -0,0 +1,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,
|
||||
},
|
||||
]),
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user