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 this._session.loggedIn never gets set. Anybody an idea why?
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 => {
                    this._session.currentProfile = data;
                    this._session.loggedIn = true;
                    this._router.navigate(['Home']);
                },
                err => {}
            );
    }
}
AuthenticationService:
login(email, password){
        return this._http.get('/profile')
            .map(res => res.json());
}
