How does HTTP error-handling work with observables?
问题 I see a lot of tutorials doing something like this: http.get("...").subscribe( success => console.log('hello success'), error => console.log('bye error') ); I don't know how this works, since there aren't any types or anything, however I tried to do that myself and I end up that the request always goes into success, even if I have an error. What is the problem? Troublemaker: this.memberService.create(this.currentMember) .subscribe( success => { let mem: Member = success.json() as Member; if