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

Commit 8de3f3d

Browse files
committed
Move styles from sample.css to heroes.component.css, document changes to heroes.component.css in the tutorial.
1 parent 34b687d commit 8de3f3d

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

public/docs/_examples/toh-6/ts/app/heroes.component.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ button {
5757
button:hover {
5858
background-color: #cfd8dc;
5959
}
60+
/* #docregion delete-hero */
61+
button.delete-button{
62+
float:right;
63+
background-color: gray !important;
64+
color:white;
65+
}
66+
/* #enddocregion delete-hero */

public/docs/_examples/toh-6/ts/sample.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,16 @@ figure.image-display
266266
We aren't navigating to the component so it won't receive a hero `id`;
267267
As we noted above, that is the component's cue to create and present an empty hero.
268268

269-
Add the following HTML to the `heroes.component.html`, just below the hero list (the `*ngFor`).
269+
Add the following HTML to `heroes.component.html`, just below the hero list (the `*ngFor`).
270270
+makeExample('toh-6/ts/app/heroes.component.html', 'add-hero', 'app/heroes.component.html (add)')(format=".")
271271
:marked
272272
The user can *delete* an existing hero by clicking a delete button next to the hero's name.
273273

274274
Add the following HTML to the `heroes.component.html` right after the name in the repeated `<li>` tag:
275275
+makeExample('toh-6/ts/app/heroes.component.html', 'delete-hero', 'app/heroes.component.html (delete)')(format=".")
276-
276+
:marked
277+
Add the following CSS to the bottom of `heroes.component.css`.
278+
+makeExample('toh-6/ts/app/heroes.component.css', 'delete-hero', 'app/heroes.component.css (delete)')(format=".")
277279
:marked
278280
Now let's fix-up the `HeroesComponent` to support the *add* and *delete* actions in the template.
279281
Let's start with *add*.
@@ -339,7 +341,6 @@ figure.image-display
339341
.file index.html
340342
.file package.json
341343
.file styles.css
342-
.file sample.css
343344
.file systemjs.config.json
344345
.file tsconfig.json
345346
.file typings.json
@@ -361,6 +362,7 @@ figure.image-display
361362
`toh-6/ts/app/app.component.ts,
362363
toh-6/ts/app/heroes.component.ts,
363364
toh-6/ts/app/heroes.component.html,
365+
toh-6/ts/app/heroes.component.css,
364366
toh-6/ts/app/hero-detail.component.ts,
365367
toh-6/ts/app/hero-detail.component.html,
366368
toh-6/ts/app/hero.service.ts`,

0 commit comments

Comments
 (0)