Commit f2ad81d1 by Emile TAVERNE

Ajout routing par défaut

parent 71b753b8
<app-header></app-header>
<app-page-trombinoscope></app-page-trombinoscope>
<router-outlet></router-outlet>
......@@ -2,6 +2,7 @@ import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {HttpClientModule} from '@angular/common/http';
import {FormsModule} from '@angular/forms';
import {RouterModule} from '@angular/router';
import {AppComponent} from './app.component';
......@@ -23,7 +24,11 @@ import * as Pipes from './pipes';
imports: [
BrowserModule,
HttpClientModule,
FormsModule
FormsModule,
RouterModule.forRoot([
{path: '', component: Components.PageTrombinoscopeComponent, pathMatch: 'full'},
{path: '**', redirectTo: ''}
])
],
providers: [
Services.PersonService
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment