Newer
Older
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AboutComponent } from './about/about.component';
import { HomeComponent } from './home/home.component';
import { LegalNoticeComponent } from './legal-notice/legal-notice.component';
import { StructureListComponent } from './structure-list/structure-list.component';
const routes: Routes = [
{
path: 'home',
component: HomeComponent,
},
{
path: 'projects',
component: HomeComponent,
},
{
path: 'login',
component: HomeComponent,
},
{
path: 'sturctures',
component: StructureListComponent,
},
{
path: 'resources',
component: HomeComponent,
{
path: 'legal-notice',
component: LegalNoticeComponent,
},
{
path: 'about',
component: AboutComponent,
},
{
path: '**',
redirectTo: 'home',
},
];