mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-15 02:53:57 +00:00
25 lines
738 B
TypeScript
25 lines
738 B
TypeScript
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';
|
|
import {LandingpageComponent} from './landingpage/landingpage.component';
|
|
import {ProductDetailPageComponent} from './product-detail-page/product-detail-page.component';
|
|
|
|
const routes: Routes = [
|
|
{path: '', component: LandingpageComponent},
|
|
{path: 'product', component: ProductDetailPageComponent}
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [],
|
|
imports: [
|
|
RouterModule.forRoot(routes)
|
|
],
|
|
exports: [
|
|
RouterModule
|
|
]
|
|
})
|
|
export class AppRouting {
|
|
}
|