From 44124980c55d5a5ec7dfb8e71bf14d10f0fe975d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Apr 2016 20:58:07 +0200 Subject: Add typescript (and angular2) linter --- client/angular/app/app.component.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'client/angular/app') diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts index 1648b8870..68c9ba009 100644 --- a/client/angular/app/app.component.ts +++ b/client/angular/app/app.component.ts @@ -53,8 +53,11 @@ export class AppComponent { 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 => { @@ -87,7 +90,7 @@ export class AppComponent { } }, error => alert(error) - ) + ); } quitFriends() { @@ -96,6 +99,6 @@ export class AppComponent { alert('Quit friends!'); }, error => alert(error) - ) + ); } } -- cgit v1.2.3