From 5fff17f1e0011802c7b51c084c1eae2b2d3cc1ae Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Tue, 5 Aug 2025 19:12:40 -0700 Subject: [PATCH] Fix navbar highlighting --- src/Client/src/app/app.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Client/src/app/app.ts b/src/Client/src/app/app.ts index 7c72022..147e71a 100644 --- a/src/Client/src/app/app.ts +++ b/src/Client/src/app/app.ts @@ -13,10 +13,6 @@ import { isDevMode } from '@angular/core'; }) export class App { - @ViewChild('companiesLink') companiesLink!: ElementRef; - @ViewChild('jobsLink') jobLink!: ElementRef; - @ViewChild('resumesLink') resumeLink!: ElementRef; - devMode: boolean = false; constructor( private http: HttpClient, public auth: Authentication, private router: Router, private route: ActivatedRoute, private location: Location){ @@ -48,13 +44,4 @@ export class App { }); } - ngAfterViewInit(){ - let ViewLinks = [ this.companiesLink, this.resumeLink, this.jobLink ]; - ViewLinks.forEach(link => { - if (new URL(link.nativeElement.href).pathname === new URL(window.location.href).pathname){ - link.nativeElement.classList.add("active"); - } - }); - } - }