Skip to content

Commit 5768a61

Browse files
authored
Merge pull request #146 from raj-rathod/rajesh
fix:<Page title and 404 route> #145 page title and 404 route
2 parents 668c21f + bfc78f5 commit 5768a61

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

src/app/app-routing.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
33
import { pageMetaData } from './core/meta-data/meta-data';
4-
import { AlgorithmComponent } from './layout/algorithm/algorithm.component';
54
import { DataStructureComponent } from './layout/data-structure/data-structure.component';
65
import { HomeComponent } from './layout/home/home.component';
76
import { PageNotFoundComponent } from './layout/page-not-found/page-not-found.component';
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2+
import { Router } from '@angular/router';
23

34
@Component({
45
selector: 'app-page-not-found',
@@ -7,9 +8,12 @@ import { Component, OnInit } from '@angular/core';
78
})
89
export class PageNotFoundComponent implements OnInit {
910

10-
constructor() { }
11+
constructor(
12+
private router: Router,
13+
) { }
1114

1215
ngOnInit(): void {
16+
this.router.navigate(['/404']);
1317
}
1418

1519
}
33.9 KB
Loading
101 KB
Loading

src/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<base href="/">
6+
<title>Data Structures and Algorithms | Visualization</title>
67
<meta name="viewport" content="width=device-width, initial-scale=1">
78
<link rel="icon" type="image/png" href="https://raj-rathod.github.io/DSA-visualisation-in-angular/assets/icons/dsa-logo.png">
89
<link rel="manifest" href="manifest.webmanifest">
@@ -37,9 +38,9 @@
3738
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
3839

3940
<!-- github button -->
40-
<script async="" defer="" src="https://buttons.github.io/buttons.js"></script>
41+
<script defer src="https://buttons.github.io/buttons.js"></script>
4142
<!-- Google tag (gtag.js) -->
42-
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-FVLGG3XVED"></script>
43+
<script src="https://www.googletagmanager.com/gtag/js?id=G-FVLGG3XVED"></script>
4344
<script>
4445
window.dataLayer = window.dataLayer || [];
4546
function gtag(){dataLayer.push(arguments);}

0 commit comments

Comments
 (0)