Skip to content

Commit

Permalink
I changed the title of not found page
Browse files Browse the repository at this point in the history
  • Loading branch information
aline-borges committed Oct 28, 2020
1 parent 63f9c07 commit 60c88e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/errors/not-found/not-found.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<h1 class="title-page">Infelizmente, essa página não existe..</h1>
<h2 class="error-number">404</h2>
<img class="error-image" src="../../../../assets/images/talking.gif" alt="asking for information">
<p class="help-message">...Mas vamos te ajudar ok? <span routerLink="/home" class="back-to-homepage">Volte para a página inicial.</span></p>
<p class="help-message">...Mas vamos te ajudar ok? <span routerLink="/home" (click)="changeTitle()" class="back-to-homepage">Volte para a página inicial.</span></p>
</div>
9 changes: 8 additions & 1 deletion src/app/pages/errors/not-found/not-found.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';

@Component({
selector: 'app-not-found',
Expand All @@ -7,7 +8,13 @@ import { Component, OnInit } from '@angular/core';
})
export class NotFoundComponent implements OnInit {

constructor() { }
constructor(private titleService: Title) {
this.titleService.setTitle(`Página Não Encontrada | Agência de Viagens - Hurb`);
}

changeTitle() {
this.titleService.setTitle(`Hotéis, Resorts, Pacotes e mais - Agência de Viagens | Hurb`);
}

ngOnInit(): void {
}
Expand Down

0 comments on commit 60c88e5

Please sign in to comment.