-
Notifications
You must be signed in to change notification settings - Fork 0
task#14 add a route auctions
bacn edited this page Sep 16, 2020
·
1 revision
- Import your AuctionListComponent to your routing file
- Add a route for your AuctionListComponent
- Add your routing to the imports of your module
The path /auctions shall show to the AuctionListComponent.
export const routes: Routes = [
{
path: 'auctions',
component: AuctionListComponent
}
];We need to define our routing in the app.module.ts file.
This step can be skipped if the routing module has been created at project start.
@NgModule({
imports: [
AppRoutingModule
]
})