title: Angular2 & Rest API -> sessions
body: <p>I'm trying to develop a web app in which the users need to login. So I need to store their Session ID.</p>
  
  <p>I would need to make an http get to the Rest API, get the session ID if the user is signed in, and then return this Session ID. But the angular2 script would need to wait until it gets this Session ID before executing the rest of the code...</p>
  
  <p>Is their a way to make that possible ? </p>