mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-15 02:53:57 +00:00
25 lines
687 B
TypeScript
25 lines
687 B
TypeScript
|
import {NgModule} from '@angular/core';
|
||
|
import {CommonModule} from '@angular/common';
|
||
|
import {RouterModule, Routes} from '@angular/router';
|
||
|
import {HelloWorldComponent} from './hello-world/hello-world.component';
|
||
|
import {AppComponent} from './app.component';
|
||
|
import {ProductListComponent} from './product-list/product-list.component';
|
||
|
|
||
|
const routes: Routes = [
|
||
|
{path: '', component: AppComponent},
|
||
|
{path: 'helloworld', component: HelloWorldComponent},
|
||
|
{path: 'pdp', component: ProductListComponent}
|
||
|
];
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [],
|
||
|
imports: [
|
||
|
RouterModule.forRoot(routes)
|
||
|
],
|
||
|
exports: [
|
||
|
RouterModule
|
||
|
]
|
||
|
})
|
||
|
export class AppRoutingModule {
|
||
|
}
|