3-routing complet
This commit is contained in:
parent
4a4502bdfd
commit
3628d34772
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue