Commit 3b49993b authored by saliou673's avatar saliou673
Browse files

[FRONT] add 404 error page

parent dad169cb
......@@ -11,8 +11,9 @@ const routes: Routes = [
{ path: 'test', component: MessagetestComponent },
{ path: 'login', component: LoginComponent},
{ path: 'signup', component: SignupComponent},
{ path: '404', component: NotfoundComponent},
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: '**', component: NotfoundComponent },
{ path: '**', redirectTo: '404' },
];
@NgModule({
......
<app-header *ngIf="currentRoute !='login' && currentRoute != 'signup'"></app-header>
<app-header *ngIf="currentRoute !='login' && currentRoute != 'signup' && currentRoute != '404'"></app-header>
<router-outlet></router-outlet>
\ No newline at end of file
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