2022-05-12 11:53:03 -07:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2022-05-13 15:33:15 -07:00
|
|
|
import { HomeComponent } from './home/home.component';
|
|
|
|
import { ProductDetailsComponent } from './shop/product-details/product-details.component';
|
|
|
|
import { ShopComponent } from './shop/shop.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{path: '', component: HomeComponent},
|
|
|
|
{path: 'shop', loadChildren: ()=> import('./shop/shop.module').then(mod => mod.ShopModule)},
|
|
|
|
{path: '**', redirectTo: '', pathMatch: 'full'}
|
|
|
|
];
|
2022-05-12 11:53:03 -07:00
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|