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

Commit a786d3c

Browse files
committed
Move styles from sample.css to heroes.component.css, document changes to heroes.component.css in the tutorial.
Edited tutorial to reflect the removal of `sample.css` and the change to `heroes.component.css`. Remove reference to `/public/docs/_examples/toh-6/ts/index.css` from `/public/docs/_examples/toh-6/ts/index.html`.
1 parent e7bddeb commit a786d3c

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* #docregion */
12
.selected {
23
background-color: #CFD8DC !important;
34
color: white;
@@ -57,3 +58,10 @@ button {
5758
button:hover {
5859
background-color: #cfd8dc;
5960
}
61+
/* #docregion additions */
62+
.error {color:red;}
63+
button.delete-button{
64+
float:right;
65+
background-color: gray !important;
66+
color:white;
67+
}

public/docs/_examples/toh-6/ts/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

88
<link rel="stylesheet" href="styles.css">
9-
<link rel="stylesheet" href="sample.css">
109

1110
<!-- Polyfill(s) for older browsers -->
1211
<script src="node_modules/core-js/client/shim.min.js"></script>

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: 7 additions & 6 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+
+makeExcerpt('toh-6/ts/app/heroes.component.css', 'additions', '')(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*.
@@ -391,7 +393,6 @@ block filetree
391393
.file typings ...
392394
.file index.html
393395
.file package.json
394-
.file sample.css (new)
395396
.file styles.css
396397
.file systemjs.config.json
397398
.file tsconfig.json
@@ -415,18 +416,18 @@ block file-summary
415416
`toh-6/ts/app/app.component.ts,
416417
toh-6/ts/app/heroes.component.ts,
417418
toh-6/ts/app/heroes.component.html,
419+
toh-6/ts/app/heroes.component.css,
418420
toh-6/ts/app/hero-detail.component.ts,
419421
toh-6/ts/app/hero-detail.component.html,
420422
toh-6/ts/app/hero.service.ts,
421-
toh-6/ts/app/in-memory-data.service.ts,
422-
toh-6/ts/sample.css`,
423+
toh-6/ts/app/in-memory-data.service.ts`,
423424
null,
424425
`app.comp...ts,
425426
heroes.comp...ts,
426427
heroes.comp...html,
428+
heroes.comp...css,
427429
hero-detail.comp...ts,
428430
hero-detail.comp...html,
429431
hero.service.ts,
430-
in-memory-data.service.ts,
431-
sample.css`
432+
in-memory-data.service.ts`
432433
)

0 commit comments

Comments
 (0)