Skip to content
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
@johncrim

Description

@johncrim

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions