Skip to content

Commit 1426c0d

Browse files
committed
404 index
1 parent f6cd4c3 commit 1426c0d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
import { Component } from '@angular/core'
1+
import { Component, OnDestroy, OnInit } from '@angular/core'
2+
import { RobotsMetaTagsService } from 'src/app/core/robots-meta-tags/robots-meta-tags.service'
23

34
@Component({
45
selector: 'app-page-not-found',
56
templateUrl: './page-not-found.component.html',
67
styleUrls: ['./page-not-found.component.scss'],
78
})
8-
export class PageNotFoundComponent {}
9+
export class PageNotFoundComponent implements OnInit, OnDestroy {
10+
constructor(private _robotsMetaTags: RobotsMetaTagsService) {}
11+
ngOnDestroy(): void {
12+
this._robotsMetaTags.restoreEnvironmentRobotsConfig()
13+
}
14+
ngOnInit(): void {
15+
this._robotsMetaTags.disallowRobots()
16+
}
17+
}

0 commit comments

Comments
 (0)