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 { ChangePasswordComponent } from './account-settings/change-password/change-password.component';
|
||||||
import { ProfilEditionComponent } from './account-settings/profil-edition/profil-edition.component';
|
import { ProfilEditionComponent } from './account-settings/profil-edition/profil-edition.component';
|
||||||
import { PostComponent } from './posts/post.component';
|
import { PostComponent } from './posts/post.component';
|
||||||
|
import { NotFoundComponent } from './not-found/not-found.component';
|
||||||
|
|
||||||
// Reusable components
|
// Reusable components
|
||||||
import { PostCardComponent } from './core/post-card/post-card.component';
|
import { PostCardComponent } from './core/post-card/post-card.component';
|
||||||
@@ -56,7 +57,8 @@ import { PostService } from './posts/post.service';
|
|||||||
AccountSettingsComponent,
|
AccountSettingsComponent,
|
||||||
ChangePasswordComponent,
|
ChangePasswordComponent,
|
||||||
ProfilEditionComponent,
|
ProfilEditionComponent,
|
||||||
PostComponent
|
PostComponent,
|
||||||
|
NotFoundComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
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>
|
</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