From c5678e6a12c11bbe9a3056cc79c63b1e199c5a8e Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Thu, 14 May 2020 10:37:35 -0400 Subject: [PATCH] Removes unnecessary OnInit --- src/app/navbar/navbar.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/navbar/navbar.component.ts b/src/app/navbar/navbar.component.ts index 6eade1a..d91f047 100644 --- a/src/app/navbar/navbar.component.ts +++ b/src/app/navbar/navbar.component.ts @@ -16,7 +16,7 @@ interface NavItem { templateUrl: './navbar.component.html', styleUrls: ['./navbar.component.scss'] }) -export class NavbarComponent implements OnInit { +export class NavbarComponent { navLinks: NavItem[]; user: User; isSignedIn = isSignedIn; @@ -28,9 +28,6 @@ export class NavbarComponent implements OnInit { this._loadUser(); } - ngOnInit() { - } - isLinkActive(path: string) { return path === this.router.url; }