SHARE
TWEET

Untitled

a guest Oct 23rd, 2017 427 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return this._http.post(apiUrl, model)
  2.             .map((res: Response) => {
  3.                 console.log(res.json());
  4.                 let user = Object(res.json());
  5.                 //let user = Object.keys(res.json());
  6.                 //console.log(user['Username']);
  7.  
  8.                 if (user) {
  9.                     localStorage.setItem('currentUser', JSON.stringify(user));
  10.             }
  11.         })
  12.    
  13. Object {Id: 101, UserName: "appatel", FirstName: "aarsh", LastName: "patel", Password: "aarsh"…}
  14. Email: "aarshpatel@gmail.com"
  15. FirstName: "aarsh"
  16. Gender: "Male  "
  17. Id: 101
  18. LastName: "patel"
  19. Password: "aarsh"
  20. UserName: "appatel"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top