Removes unnecessary OnInit
This commit is contained in:
parent
8db40d24d0
commit
c5678e6a12
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue