angular / angular

Deliver web apps with confidence 🚀
https://angular.dev
MIT License
96.05k stars 25.41k forks source link

Visual Studio 2015 - HTTP Client - unable to retrieve data #10302

Closed JaimeStill closed 8 years ago

JaimeStill commented 8 years ago

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior Built the HTTP Client tutorial from the dev guide in Visual Studio 2015 (Update 3 with latest patch. Setup the solution according to the cookbook for Visual Studio 2015). Calls to getHeroes() from both the hero.service.promise and hero.service services both return 404 Not Found in the errors div of the hero-list component (regardless of whether I set the URL to the local heroes.json file, or the in memory web api).

angular2_httpclient_404

Expected/desired behavior app/heroes and app/heroes.json should return the list of heroes from either source in both the hero.service and hero.service.promise services.

Reproduction of the problem Repo for the solution I am using to run this: https://github.com/JaimeStill/HttpClient

Please tell us about your environment: Visual Studio 2015 Update 3 (with latest patch) .Net 4.5.2 ASP.NET 4 Empty Web Project with Quickstart Installation TypeScript: 1.8.10 Angular: 2.0.0-rc.4 angular2-in-memory-web-api: 0.0.14

Tested on Firefox 47.01, IE 11, and Edge

vicb commented 8 years ago

If there is a bug please provide a minimal repro.

If you are looking for support, please use giter or stack overflow. Thanks.

angular-automatic-lock-bot[bot] commented 5 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.