title: Subscribe does not exist of type 'Subscription'
body: <p>I am new to angualr 2. And I am making a small application for practice. I have a service for authentication of users when they log in. And here is it's login function.</p>
  
  <pre><code>login(email:string, password:string){
  
          var loginrul="https://filing.herokuapp.com/api/v1/auth/login/";
          return this.http.post(loginrul,JSON.stringify({  password: password,email: email }),
              {headers:new Headers({'Content-Type':'application/json'})}
              ).map(res=&gt;res.json()).
              subscribe(
                  data =&gt; localStorage.setItem('id_token',data.auth_token),
                  error=&gt;console.log(error)
              );
      }
  </code></pre>
  
  <p>When I call this function in component angualr gives error that "Property subscribe does not exist on type 'Subscription'. </p>
  
  <pre><code>doLogin(event) {
          console.log(event);
          console.log(this.loginForm.value);
  
  
          let formData = this.loginForm.value;
          let email = this.loginForm.controls.email.value;
          let password= this.loginForm.controls.password.value;
          this.auth.login(email,password).subscribe(res =&gt;{
              console.log(res);
              if(res.status===200){
                  this.router.navigate(['dashboard']);
              }
          }
          )
      }
  </code></pre>
  
  <p>I think why angular is giving this error because i am using subscribe in login function as well as while calling login function. Please suggest some solution or an alternative approach to achieve the result which I am trying to achieve in login function.</p>