Guest User

Untitled

a guest
Nov 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. login_btnClick() {
  2.  
  3. var NTLoginID = ((document.getElementById("NTLoginID") as HTMLInputElement).value);
  4. this._homeService.get(Global.BASE_USER_ENDPOINT + '/EmployeeDetailsApi?user_id=' + NTLoginID)
  5. .do(data => sessionStorage.setItem('session',JSON.stringify(data)))
  6. .subscribe(homes => { this.homes = homes; this.indLoading = false; },
  7. error => this.msg = <any>error);
  8. var session = sessionStorage.getItem('session');
  9. alert(JSON.stringify(session));
  10. this.router.navigateByUrl('/user');
  11. }
Add Comment
Please, Sign In to add comment