2020-12-02 08:02:24 +00:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
import {ProductListComponent} from './product-list/product-list.component';
|
2020-12-02 15:43:57 +00:00
|
|
|
import {LandingpageComponent} from './landingpage/landingpage.component';
|
2020-12-02 17:36:30 +00:00
|
|
|
import {ProductDetailPageComponent} from './product-detail-page/product-detail-page.component';
|
2020-12-02 08:02:24 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2020-12-02 15:43:57 +00:00
|
|
|
{path: '', component: LandingpageComponent},
|
2020-12-03 10:31:48 +00:00
|
|
|
{path: 'product/:id', component: ProductDetailPageComponent}
|
2020-12-02 08:02:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [],
|
|
|
|
imports: [
|
|
|
|
RouterModule.forRoot(routes)
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
RouterModule
|
|
|
|
]
|
|
|
|
})
|
2020-12-02 15:43:57 +00:00
|
|
|
export class AppRouting {
|
2020-12-02 08:02:24 +00:00
|
|
|
}
|