title: Angular2 set variable on subscribe not working
body: <p>I am quite new to angular2 but i tried to write a login component. Everything works fine except after a successful login i want to set the username and password in my session service (where i store the username and password to create basic auth headers). Sadly <code>this._session.loggedIn</code> never gets set. Anybody an idea why?</p>
  
  <pre><code>export class LoginComponent {
  
      public email = '';
      public password = '';
  
      constructor(
          private _router: Router,
          private _auth: AuthenticationService,
          private _session: SessionService) {
      }
  
      login() {
          this._auth.login(this.email, this.password)
              .subscribe(
                  data =&gt; {
                      this._session.currentProfile = data;
                      this._session.loggedIn = true;
                      this._router.navigate(['Home']);
                  },
                  err =&gt; {}
              );
      }
  }
  </code></pre>
  
  <p>AuthenticationService:</p>
  
  <pre><code>login(email, password){
          return this._http.get('/profile')
              .map(res =&gt; res.json());
  }
  </code></pre>