Add not-found component.

This commit is contained in:
2019-02-10 16:07:32 +01:00
parent f45006acc0
commit f0b53f752f
3 changed files with 16 additions and 2 deletions

View File

@@ -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,

View File

@@ -0,0 +1,12 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-not-found',
template: `
<div class="text-center">
<img src="./assets/images/404.png" alt="404" />
<h3>Page non trouvée...</h3>
</div>
`
})
export class NotFoundComponent {}

View File

@@ -64,4 +64,4 @@
</div>
</div>
</div>
<!-- <app-not-found *ngIf="notFound"></app-not-found> -->
<app-not-found *ngIf="notFound"></app-not-found>