16 lines
637 B
TypeScript
16 lines
637 B
TypeScript
import { Routes } from '@angular/router';
|
|
import { Home } from '../pages/home/home';
|
|
import { About } from '../pages/about/about';
|
|
import { Contact } from '../pages/contact/contact';
|
|
import { Projects } from '../pages/projects/projects';
|
|
import { ProjectDetail } from '../pages/projects/project-detail/project-detail';
|
|
|
|
export const routes: Routes = [
|
|
{ path: '', redirectTo: 'home', pathMatch: 'full' },
|
|
{ path: 'home', component: Home },
|
|
{ path: 'about', component: About },
|
|
{ path: 'contact', component: Contact },
|
|
{ path: 'projects', component: Projects },
|
|
{ path: 'projects/:projectName', component: ProjectDetail },
|
|
];
|