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

Commit 84e0b3e

Browse files
committed
docs(toh-1/ts): minor edits
- Fixed HTML. - Removed unnecessary snippet since it is in the code. - Copyedit: (Hero property) -> (hero property).
1 parent 7e52648 commit 84e0b3e

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

public/docs/_examples/toh-1/ts-snippets/app.component.snippets.pt1.ts

-7
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,3 @@ export class AppComponent {
3737
hero = 'Windstorm';
3838
}
3939
// #enddocregion app-component-1
40-
41-
// #docregion hero-property-1
42-
hero: Hero = {
43-
id: 1,
44-
name: 'Windstorm'
45-
};
46-
// #enddocregion hero-property-1

public/docs/_examples/toh-1/ts/app/app.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ export class Hero {
2222
})
2323
export class AppComponent {
2424
title = 'Tour of Heroes';
25+
// #docregion hero-property-1
2526
hero: Hero = {
2627
id: 1,
2728
name: 'Windstorm'
2829
};
30+
// #enddocregion hero-property-1
2931
}
30-
3132
// #enddocregion pt1

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ code-example(language="bash").
7878
Now that we have a `Hero` class, let’s refactor our component’s `hero` property to be of type `Hero`.
7979
Then initialize it with an id of `1` and the name, "Windstorm".
8080

81-
+makeExample('toh-1/ts-snippets/app.component.snippets.pt1.ts', 'hero-property-1', 'app.component.ts (Hero property)')(format=".")
81+
+makeExample('toh-1/ts/app/app.component.ts', 'hero-property-1', 'app.component.ts (hero property)')(format=".")
8282

8383
:marked
8484
Because we changed the hero from a string to an object,

0 commit comments

Comments
 (0)