I've looked up all the github issues, and the StackOverflow posts, but I'm unable to get it working
( https://github.com/angular/angular/issues/5632 )
(Angular 2 HTTP GET with TypeScript error http.get(...).map is not a function in [null] )
- I'm using Angular2@2.0.0-beta.1
- Rxjs (rxjs@5.0.0-beta.1) is successfully imported when I check console/resources in console.
I tried different imports:
import 'rxjs/add/operator/map';
import 'rxjs/rx';
But I keep getting the error
http.post(...).map is not a function
update - code context
let body = "email=" + email + "&password=" + password;
let headers = new Headers();
headers.append('Content-Type', 'application/x-www-from-urlencoded');
this.http.post('http://angular.app/api/v1/auth') // angular.app is laravel backend
.map( (responseData) => {
return responseData.json();
})