3-routing complet

This commit is contained in:
HarmandI 2021-12-15 16:45:50 +01:00
parent 4a4502bdfd
commit 3628d34772
1 changed files with 4 additions and 1 deletions

View File

@ -2,10 +2,13 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageAccueilComponent } from './pages/page-accueil/page-accueil.component';
import { PageDetailsComponent } from './pages/page-details/page-details.component';
import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.component';
const routes: Routes = [
{path:'',redirectTo: 'home', pathMatch: 'full'},
{path:'home', component: PageAccueilComponent},
{path : 'details', component: PageDetailsComponent}
{path : 'details', component: PageDetailsComponent},
{path : '**', component : PageNotFoundComponent}
];
@NgModule({