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

Commit 6c7477e

Browse files
committed
Move styles from sample.css to heroes.component.css, document changes to heroes.component.css in the tutorial.
1 parent 3fe0fb0 commit 6c7477e

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
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 & 7 deletions
This file was deleted.

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ block add-new-hero-via-detail-comp
315315
The user can *delete* an existing hero by clicking a delete button next to the hero's name.
316316
Add the following to the heroes component HTML right after the hero name in the repeated `<li>` tag:
317317
+makeExample('app/heroes.component.html', 'delete')
318-
318+
:marked
319+
Add the following CSS to the bottom of `heroes.component.css`.
320+
+makeExample('toh-6/ts/app/heroes.component.css', 'delete-hero', 'app/heroes.component.css (delete)')(format=".")
319321
:marked
320322
Now let's fix-up the `HeroesComponent` to support the *add* and *delete* actions used in the template.
321323
Let's start with *add*.
@@ -390,7 +392,6 @@ block filetree
390392
.file typings ...
391393
.file index.html
392394
.file package.json
393-
.file sample.css (new)
394395
.file styles.css
395396
.file systemjs.config.json
396397
.file tsconfig.json
@@ -414,6 +415,7 @@ block file-summary
414415
`toh-6/ts/app/app.component.ts,
415416
toh-6/ts/app/heroes.component.ts,
416417
toh-6/ts/app/heroes.component.html,
418+
toh-6/ts/app/heroes.component.css,
417419
toh-6/ts/app/hero-detail.component.ts,
418420
toh-6/ts/app/hero-detail.component.html,
419421
toh-6/ts/app/hero.service.ts,

0 commit comments

Comments
 (0)