diff --git a/src/app/app.module.ts b/src/app/app.module.ts index fa3d75f7..61711dc3 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -67,7 +67,13 @@ const MATERIAL_MODULES = [ ReactiveFormsModule, ...MATERIAL_MODULES, RouterModule.forRoot([ - { path: 'listings', children: [{ path: ':listingId', component: ListingComponent }] }, + { + path: 'listings', + children: [ + { path: ':listingId', component: ListingComponent }, + { path: 'new', component: ListingComponent, pathMatch: 'full' }, + ], + }, { path: '**', pathMatch: 'full', redirectTo: '/' }, ]), NgxSubFormModule, diff --git a/src/app/main/listing/listing.component.html b/src/app/main/listing/listing.component.html index c74bf651..6a84045e 100644 --- a/src/app/main/listing/listing.component.html +++ b/src/app/main/listing/listing.component.html @@ -6,21 +6,22 @@