Add not-found component.
This commit is contained in:
@@ -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,
|
||||
|
||||
12
src/main/ts-v7/src/app/not-found/not-found.component.ts
Normal file
12
src/main/ts-v7/src/app/not-found/not-found.component.ts
Normal 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 {}
|
||||
@@ -64,4 +64,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <app-not-found *ngIf="notFound"></app-not-found> -->
|
||||
<app-not-found *ngIf="notFound"></app-not-found>
|
||||
|
||||
Reference in New Issue
Block a user