21 lines
No EOL
772 B
TypeScript
21 lines
No EOL
772 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { HomeComponent } from './component/home/home.component';
|
|
import { SymptomsComponent } from './component/symptoms/symptoms.component';
|
|
import { BlogsComponent } from './component/blogs/blogs.component';
|
|
import { ContactComponent } from './component/contact/contact.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', component: HomeComponent },
|
|
{ path: 'home', component: HomeComponent },
|
|
{ path: 'symptoms', component: SymptomsComponent },
|
|
{ path: 'blogs', component: BlogsComponent },
|
|
{ path: 'contact', component: ContactComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { } |