Betterzon/Frontend/src/app/app-routing.module.ts

25 lines
687 B
TypeScript
Raw Normal View History

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 {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 {
}