Removes unnecessary OnInit

This commit is contained in:
Aaron Louie 2020-05-14 10:37:35 -04:00
parent 8db40d24d0
commit c5678e6a12
1 changed files with 1 additions and 4 deletions

View File

@ -16,7 +16,7 @@ interface NavItem {
templateUrl: './navbar.component.html', templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.scss'] styleUrls: ['./navbar.component.scss']
}) })
export class NavbarComponent implements OnInit { export class NavbarComponent {
navLinks: NavItem[]; navLinks: NavItem[];
user: User; user: User;
isSignedIn = isSignedIn; isSignedIn = isSignedIn;
@ -28,9 +28,6 @@ export class NavbarComponent implements OnInit {
this._loadUser(); this._loadUser();
} }
ngOnInit() {
}
isLinkActive(path: string) { isLinkActive(path: string) {
return path === this.router.url; return path === this.router.url;
} }