Skip to content

Commit

Permalink
Configure product routing
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Jan 12, 2024
1 parent 62c99df commit f73360e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const routes: Routes = [
(m) => m.PrivacyPolicyModule
),
},
{ path: '', redirectTo: '/products', pathMatch: 'full' }, // TODO CHANGE TO PRODUCTS
{ path: '**', redirectTo: '/products' },
];

@NgModule({
Expand Down
8 changes: 2 additions & 6 deletions src/app/features/products/products.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ const vclModules = [

const routes: Routes = [
{
path: '',
component: ShoesComponent,
},
{
path: 'shoes',
path: 'products',
component: ShoesComponent,
children: [
{
Expand Down Expand Up @@ -78,7 +74,7 @@ const routes: Routes = [
ProductNavigationComponent,
ProductRecommendComponent,
ProductSizePickerComponent,
ProductZoomComponent
ProductZoomComponent,
],
imports: [
CommonModule,
Expand Down

0 comments on commit f73360e

Please sign in to comment.