Linked Questions
52 questions linked to/from Angular HTTP GET with TypeScript error http.get(...).map is not a function in [null]
13
votes
2
answers
22k
views
Angular2 http is missing .map function [duplicate]
I found this example code in a tutorial:
getRandomQuote() {
this.http.get('http://localhost:3001/api/random-quote')
.map(res => res.text())
.subscribe(
data => this.randomQuote =...
5
votes
2
answers
2k
views
Error : .map() is not a function [duplicate]
Trying to subscribe to the parsed response of HTTP - GET from the component. Getting a error saying .map is not a function whether used from HTTPService or from the component class.
Httpdemo....
2
votes
1
answer
3k
views
this.http.post(...).map is not a function [duplicate]
doSelectMessagesAttributesUrl1(pushRequest : PushRequest) {
console.info("sending post request");
let headers = new Headers({
'Content-Type': 'application/x-www-form-urlencoded'});
...
0
votes
2
answers
2k
views
How to use Observables operators with EventEmitter (FormModel.valueChanges) in Angular2 [duplicate]
I'm trying to use some simple operators on a EventEmitter (from a FormModel.valueChanges) but I don't know how it's suppose to be done.
The class EventEmitter extends from Subject
export declare ...
0
votes
1
answer
536
views
Angular2 Http Request returns Observable without map method [duplicate]
I have setup my application with HTTP_PROVIDERS
bootstrap(AppComponent, [
HTTP_PROVIDERS,
ROUTER_PROVIDERS,
provide(LocationStrategy, { useClass: HashLocationStrategy }),
PostService
]);
and ...
148
votes
4
answers
127k
views
Property 'catch' does not exist on type 'Observable<any>'
On the Angular 2 documentation page for using the Http service, there is an example.
getHeroes (): Observable<Stuff[]> {
return this.http.get(this.url)
.map(this.extractData)...
50
votes
5
answers
59k
views
Property 'do' does not exist on type 'Observable<IProduct[]>'
After upgrading to Angular 6.0 and Rxjs to 6.0 I receive the following compilation error:
Property 'do' does not exist on type 'Observable'.
Here is the code:
import { Observable, of } from 'rxjs';
...
103
votes
2
answers
80k
views
Chaining RxJS Observables from http data in Angular2 with TypeScript
I'm currently trying to teach myself Angular2 and TypeScript after happily working with AngularJS 1.* for the last 4 years! I have to admit I am hating it but I am sure my eureka moment is just around ...
13
votes
3
answers
15k
views
Angular2 Http with RXJS Observable TypeError: this.http.get(...).map(...).catch is not a function
I have following Service which was working fine until today i got this error
TypeError: this.http.get(...).map(...).catch is not a function.
When I'm debugging this code it crashes when it comes to ...
9
votes
5
answers
54k
views
TypeError: error.json is not a function
Edit: Read the part at the end of the question!
I get this error:
My service code:
import { Http, Response, Headers } from "@angular/http";
import { Injectable } from "@angular/core";
import 'rxjs/...
11
votes
4
answers
41k
views
Correct way of subscribing to valueChanges in Angular 2
I have been fiddling around with reactive forms and valueChanges subscription in Angular 2. I don;t quite get why certain form of subscribing seem not to be allowed.
this.form.get('name')....
7
votes
1
answer
46k
views
How to I load JSON data into Angular2 component
After running through many tutorials on tinterweb I have finally started to try and build something useful to me using Angular2 and I have come across my first issue. I cannot seem to load JSON data ...
13
votes
2
answers
20k
views
Angular2 - http.post(...).map is not a function [duplicate]
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....
5
votes
1
answer
7k
views
BehaviorSubject filter is not a function?
Spend some time trying to figure out why my plunker doesn't work :(
https://plnkr.co/edit/JHODQeWQtYmz4UkYzFds?p=preview
error append on following line
let load = this.actions$.filter (action =>...
4
votes
4
answers
6k
views
Angular 4 this.http.get(...).map is not a function
Hi i have problem with my code.
import { Injectable } from '@angular/core';
import { Car } from "./models/car";
import { Observable } from "rxjs/Observable";
import { Http } from "@angular/http";
...