This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Wrong in-memory API url in tutorial/toh-pt6.html #2883
Closed
Description
In https://angular.io/docs/ts/latest/tutorial/toh-pt6.html, under section "Heroes and HTTP", 2nd code example uses the wrong API url. The code is:
private heroesUrl = 'app/heroes'; // URL to web api
and it should be:
private heroesUrl = 'api/heroes'; // URL to web api
Also - at the end of that section, it says:
Refresh the browser, and the hero data should be successfully loaded from the mock server.
This is incorrect, because the HeroService.handleError()
fn has not been defined.
Metadata
Metadata
Assignees
Labels
No labels