From f0b53f752fe03af83b28cba507db9be1a094294f Mon Sep 17 00:00:00 2001 From: Takiguchi Date: Sun, 10 Feb 2019 16:07:32 +0100 Subject: [PATCH] Add not-found component. --- src/main/ts-v7/src/app/app.module.ts | 4 +++- .../ts-v7/src/app/not-found/not-found.component.ts | 12 ++++++++++++ src/main/ts-v7/src/app/posts/post.component.html | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/main/ts-v7/src/app/not-found/not-found.component.ts diff --git a/src/main/ts-v7/src/app/app.module.ts b/src/main/ts-v7/src/app/app.module.ts index d7309da..8f39750 100755 --- a/src/main/ts-v7/src/app/app.module.ts +++ b/src/main/ts-v7/src/app/app.module.ts @@ -28,6 +28,7 @@ import { AccountSettingsComponent } from './account-settings/account-settings.co import { ChangePasswordComponent } from './account-settings/change-password/change-password.component'; import { ProfilEditionComponent } from './account-settings/profil-edition/profil-edition.component'; import { PostComponent } from './posts/post.component'; +import { NotFoundComponent } from './not-found/not-found.component'; // Reusable components import { PostCardComponent } from './core/post-card/post-card.component'; @@ -56,7 +57,8 @@ import { PostService } from './posts/post.service'; AccountSettingsComponent, ChangePasswordComponent, ProfilEditionComponent, - PostComponent + PostComponent, + NotFoundComponent ], imports: [ BrowserModule, diff --git a/src/main/ts-v7/src/app/not-found/not-found.component.ts b/src/main/ts-v7/src/app/not-found/not-found.component.ts new file mode 100644 index 0000000..1053f68 --- /dev/null +++ b/src/main/ts-v7/src/app/not-found/not-found.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-not-found', + template: ` +
+ 404 +

Page non trouvée...

+
+ ` +}) +export class NotFoundComponent {} diff --git a/src/main/ts-v7/src/app/posts/post.component.html b/src/main/ts-v7/src/app/posts/post.component.html index 220815d..1f93b91 100644 --- a/src/main/ts-v7/src/app/posts/post.component.html +++ b/src/main/ts-v7/src/app/posts/post.component.html @@ -64,4 +64,4 @@ - +