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

Commit d52cf6c

Browse files
committed
rebase & update from feedback
1 parent 7fe9a64 commit d52cf6c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #docplaster
22
// #docregion
3-
// #docregion empty-class
3+
// #docregion empty-class, full
44
import { Injectable } from '@angular/core';
55

66
// #enddocregion empty-class
@@ -9,8 +9,16 @@ import { HEROES } from './mock-heroes';
99
// #docregion empty-class, getHeroes-stub
1010
@Injectable()
1111
export class HeroService {
12-
// #enddocregion empty-class
12+
// #enddocregion empty-class, getHeroes-stub, full
13+
/*
14+
// #docregion getHeroes-stub
1315
getHeroes(): void {
1416
}
15-
// #docregion empty-class
17+
// #enddocregion getHeroes-stub
18+
*/
19+
// #docregion full
20+
getHeroes(): Hero[] {
21+
return HEROES;
22+
}
23+
// #docregion empty-class, getHeroes-stub
1624
}

public/docs/ts/latest/tutorial/toh-pt4.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ code-example(language="bash").
129129
### Return Mocked Heroes
130130
Back in the `HeroService` we import the mock `HEROES` and return it from the `getHeroes` method.
131131
Our `HeroService` looks like this:
132-
+makeExample('toh-4/ts/app/hero.service.2.ts', null, 'app/hero.service.ts')(format=".")
132+
+makeExample('toh-4/ts/app/hero.service.1.ts', 'full', 'app/hero.service.ts')(format=".")
133133
:marked
134134
### Use the Hero Service
135135
We're ready to use the `HeroService` in other components starting with our `AppComponent`.

0 commit comments

Comments
 (0)