diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 0297262..b13fd24 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,7 +1,12 @@ 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'; -const routes: Routes = []; +const routes: Routes = [ + {path:'home', component: PageAccueilComponent}, + {path : 'details', component: PageDetailsComponent} +]; @NgModule({ imports: [RouterModule.forRoot(routes)], diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 72e8782..c26af53 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,11 +4,18 @@ import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { NavBarComponent } from './components/nav-bar/nav-bar.component'; +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'; + @NgModule({ declarations: [ AppComponent, - NavBarComponent + NavBarComponent, + PageAccueilComponent, + PageDetailsComponent, + PageNotFoundComponent, ], imports: [ BrowserModule, diff --git a/src/app/components/nav-bar/nav-bar.component.html b/src/app/components/nav-bar/nav-bar.component.html index 0eed8fc..d59698b 100644 --- a/src/app/components/nav-bar/nav-bar.component.html +++ b/src/app/components/nav-bar/nav-bar.component.html @@ -12,8 +12,8 @@