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

docs(toh-1/ts): minor edits #1615

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,3 @@ export class AppComponent {
hero = 'Windstorm';
}
// #enddocregion app-component-1

// #docregion hero-property-1
hero: Hero = {
id: 1,
name: 'Windstorm'
};
// #enddocregion hero-property-1
3 changes: 2 additions & 1 deletion public/docs/_examples/toh-1/ts/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ export class Hero {
})
export class AppComponent {
title = 'Tour of Heroes';
// #docregion hero-property-1
hero: Hero = {
id: 1,
name: 'Windstorm'
};
// #enddocregion hero-property-1
}

// #enddocregion pt1
2 changes: 1 addition & 1 deletion public/docs/ts/latest/tutorial/toh-pt1.jade
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ code-example(language="bash").
Now that we have a `Hero` class, let’s refactor our component’s `hero` property to be of type `Hero`.
Then initialize it with an id of `1` and the name, "Windstorm".

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

:marked
Because we changed the hero from a string to an object,
Expand Down