-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6cd4c3
commit 1426c0d
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 11 additions & 2 deletions
13
src/app/page-not-found-404/page-not-found/page-not-found.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
import { Component } from '@angular/core' | ||
import { Component, OnDestroy, OnInit } from '@angular/core' | ||
import { RobotsMetaTagsService } from 'src/app/core/robots-meta-tags/robots-meta-tags.service' | ||
|
||
@Component({ | ||
selector: 'app-page-not-found', | ||
templateUrl: './page-not-found.component.html', | ||
styleUrls: ['./page-not-found.component.scss'], | ||
}) | ||
export class PageNotFoundComponent {} | ||
export class PageNotFoundComponent implements OnInit, OnDestroy { | ||
constructor(private _robotsMetaTags: RobotsMetaTagsService) {} | ||
ngOnDestroy(): void { | ||
this._robotsMetaTags.restoreEnvironmentRobotsConfig() | ||
} | ||
ngOnInit(): void { | ||
this._robotsMetaTags.disallowRobots() | ||
} | ||
} |