Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(toh-pt5): change getHero to match toh-pt6 getHero #1551

Closed
wants to merge 1 commit into from

Conversation

libcthorne
Copy link
Contributor

@libcthorne libcthorne commented May 29, 2016

Fixes a discrepancy between the getHero functions in the Tour of Heroes tutorial part 6 and 7.

Part 6 getHero: https://github.com/angular/angular.io/blob/master/public/docs/_examples/toh-5/ts/app/hero.service.ts#L21
Part 7 getHero: https://github.com/angular/angular.io/blob/master/public/docs/_examples/toh-6/ts/app/hero.service.ts#L34

Reasoning: part 7 advises the reader to remove the mock HEROES data but does not tell the reader to update getHero accordingly, resulting in an error. Rather than requiring the reader to rewrite getHero to use getHeroes in part 7, it seems to make more sense to have them write it this way from the start.

@wardbell
Copy link
Contributor

wardbell commented Jun 1, 2016

Very nice. I agree. Slight wording change. Merging. Thanks.

@wardbell wardbell closed this in 3d868da Jun 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants