diff --git a/README.md b/README.md index 5bc5f41..9d5a599 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,18 @@ This project was generated with [Angular CLI](https://github.com/angular/angular ## Development server -Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. +Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change +any of the source files. ## Code scaffolding -Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. +Run `ng generate component component-name` to generate a new component. You can also +use `ng generate directive|pipe|service|class|guard|interface|enum|module`. ## Build -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag +for a production build. ## Running unit tests @@ -24,4 +27,5 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. ## Further help -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. +To get more help on the Angular CLI use `ng help` or go check out +the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 8edcc44..88b80fd 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,5 +1,5 @@ import {NgModule} from '@angular/core'; -import {RouterModule,Routes} from "@angular/router"; +import {RouterModule, Routes} from "@angular/router"; import {CollaborateurComponent} from "./components/collaborateur/collaborateur.component"; import {CollaborateurEditComponent} from "./components/collaborateur/collaborateur-edit/collaborateur-edit.component"; import {HomeComponent} from "./components/home/home.component"; @@ -15,22 +15,22 @@ import {ReferencementAddComponent} from "./components/referencement/referencemen import {ReferencementEditComponent} from "./components/referencement/referencement-edit/referencement-edit.component"; import {PeriodeEssaiAddComponent} from "./components/periode-essai/periode-essai-add/periode-essai-add.component"; -const routes : Routes = [ - {path:'', redirectTo:'/home', pathMatch:'full'}, - { path: 'home', component:HomeComponent, data:{title:'Services Collaborateurs'}}, - { path:'collaborateurs',component:CollaborateurComponent, data:{title:'Collaborateurs'} }, - { path:'collaborateurs/add',component:CollaborateurAddComponent, data:{title:'Collaborateurs'} }, - { path: 'collaborateurs/:id', component: CollaborateurEditComponent, data:{title:'Collaborateurs'} }, - { path:'referencements',component:ReferencementComponent, data:{title:'Referencements'} }, - { path:'referencements/add',component:ReferencementAddComponent, data:{title:'Referencements'} }, - { path: 'referencements/:id', component: ReferencementEditComponent, data:{title:'Referencements'} }, - { path:'agences',component:AgenceComponent, data:{title:'Agences'} }, - { path: 'agences/:id', component: AgenceEditComponent, data:{title:'Agences'} }, - { path:'businessunits',component:BusinessunitComponent, data:{title:'BusinessUnits'} }, - { path: 'businessunits/:id', component: BusinessunitEditComponent, data:{title:'BusinessUnits'} }, - { path:'periodeessais',component:PeriodeEssaiComponent, data:{title:'Periodes d\'Essai'} }, - { path: 'periodeessais/add', component: PeriodeEssaiAddComponent, data:{title:'Periodes d\'Essai'} }, - { path: 'periodeessais/:id', component: PeriodeEssaiEditComponent, data:{title:'Periodes d\'Essai'} }, +const routes: Routes = [ + {path: '', redirectTo: '/home', pathMatch: 'full'}, + {path: 'home', component: HomeComponent, data: {title: 'Services Collaborateurs'}}, + {path: 'collaborateurs', component: CollaborateurComponent, data: {title: 'Collaborateurs'}}, + {path: 'collaborateurs/add', component: CollaborateurAddComponent, data: {title: 'Collaborateurs'}}, + {path: 'collaborateurs/:id', component: CollaborateurEditComponent, data: {title: 'Collaborateurs'}}, + {path: 'referencements', component: ReferencementComponent, data: {title: 'Referencements'}}, + {path: 'referencements/add', component: ReferencementAddComponent, data: {title: 'Referencements'}}, + {path: 'referencements/:id', component: ReferencementEditComponent, data: {title: 'Referencements'}}, + {path: 'agences', component: AgenceComponent, data: {title: 'Agences'}}, + {path: 'agences/:id', component: AgenceEditComponent, data: {title: 'Agences'}}, + {path: 'businessunits', component: BusinessunitComponent, data: {title: 'BusinessUnits'}}, + {path: 'businessunits/:id', component: BusinessunitEditComponent, data: {title: 'BusinessUnits'}}, + {path: 'periodeessais', component: PeriodeEssaiComponent, data: {title: 'Periodes d\'Essai'}}, + {path: 'periodeessais/add', component: PeriodeEssaiAddComponent, data: {title: 'Periodes d\'Essai'}}, + {path: 'periodeessais/:id', component: PeriodeEssaiEditComponent, data: {title: 'Periodes d\'Essai'}}, ]; @NgModule({ @@ -38,4 +38,5 @@ const routes : Routes = [ exports: [RouterModule] }) -export class AppRoutingModule { } +export class AppRoutingModule { +} diff --git a/src/app/app.component.html b/src/app/app.component.html index 103354d..ce9d844 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -8,25 +8,31 @@ -