Linked Questions

13 votes
2 answers
22k views

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 =...
K. D.'s user avatar
  • 4,269
5 votes
2 answers
2k views

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....
Gary's user avatar
  • 2,349
2 votes
1 answer
3k views

doSelectMessagesAttributesUrl1(pushRequest : PushRequest) { console.info("sending post request"); let headers = new Headers({ 'Content-Type': 'application/x-www-form-urlencoded'}); ...
Elad Benda's user avatar
  • 36.9k
0 votes
2 answers
2k views

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 ...
Sebastián Gaviria's user avatar
0 votes
1 answer
536 views

I have setup my application with HTTP_PROVIDERS bootstrap(AppComponent, [ HTTP_PROVIDERS, ROUTER_PROVIDERS, provide(LocationStrategy, { useClass: HashLocationStrategy }), PostService ]); and ...
SoniCoder's user avatar
  • 4,164
148 votes
4 answers
127k views

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)...
BrianRT's user avatar
  • 1,972
50 votes
5 answers
59k views

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'; ...
Urgen's user avatar
  • 1,263
103 votes
2 answers
80k views

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 ...
Mike Sav's user avatar
  • 15.4k
13 votes
3 answers
15k views

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 ...
Jorawar Singh's user avatar
9 votes
5 answers
54k views

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/...
Zoker's user avatar
  • 2,067
11 votes
4 answers
41k views

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')....
user776686's user avatar
  • 8,778
7 votes
1 answer
46k views

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 ...
Beaker's user avatar
  • 214
13 votes
2 answers
20k views

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....
anche's user avatar
  • 2,904
5 votes
1 answer
7k views

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 =>...
Philippe sillon's user avatar
4 votes
4 answers
6k views

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"; ...
Marek Patyna's user avatar

15 30 50 per page