private _authService: AuthService,
private _router: Router
) {
- if (localStorage.getItem('access_token')) this.isLoggedIn = true;
- else this.isLoggedIn = false;
+ if (localStorage.getItem('access_token')) {
+ this.isLoggedIn = true;
+ } else {
+ this.isLoggedIn = false;
+ }
this._authService.loginChanged$.subscribe(
status => {
}
},
error => alert(error)
- )
+ );
}
quitFriends() {
alert('Quit friends!');
},
error => alert(error)
- )
+ );
}
}