From ccf6ed16f1eeb05b77103bd44bc06ccbbbba9bdd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 May 2016 17:25:52 +0200 Subject: Do not prefix private attributes --- client/app/users/login/login.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/app/users/login/login.component.ts') diff --git a/client/app/users/login/login.component.ts b/client/app/users/login/login.component.ts index 33590ad4c..8e369541d 100644 --- a/client/app/users/login/login.component.ts +++ b/client/app/users/login/login.component.ts @@ -10,17 +10,17 @@ import { AuthService, AuthStatus, User } from '../shared/index'; }) export class UserLoginComponent { - constructor(private _authService: AuthService, private _router: Router) {} + constructor(private authService: AuthService, private router: Router) {} login(username: string, password: string) { - this._authService.login(username, password).subscribe( + this.authService.login(username, password).subscribe( result => { const user = new User(username, result); user.save(); - this._authService.setStatus(AuthStatus.LoggedIn); + this.authService.setStatus(AuthStatus.LoggedIn); - this._router.navigate(['VideosList']); + this.router.navigate(['VideosList']); }, error => { if (error.error === 'invalid_grant') { -- cgit v1.2.3