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

Commit d71ee0d

Browse files
committed
Move styles from sample.css to heroes.component.css, document changes to heroes.component.css in the tutorial.
Revert minor grammar fix to keep PR atomic, fix missing #docregion that caused heroes.component.css to render incorrectly in the summary of changed files. remove reference to /public/docs/_examples/toh-6/ts/index.css from /public/docs/_examples/toh-6/ts/index.html remove trailing commas
1 parent 3fe0fb0 commit d71ee0d

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

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

Lines changed: 9 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,11 @@ button {
5758
button:hover {
5859
background-color: #cfd8dc;
5960
}
61+
/* #docregion delete-hero */
62+
button.delete-button{
63+
float:right;
64+
background-color: gray !important;
65+
color:white;
66+
}
67+
/* #enddocregion delete-hero */
68+
/* #enddocregion */

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: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,12 @@ 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=".")
321+
:marked
322+
Add the following CSS to the bottom of `heroes.component.css`.
323+
+makeExample('toh-6/ts/app/heroes.component.css', 'delete-hero', 'app/heroes.component.css (delete)')(format=".")
319324
:marked
320325
Now let's fix-up the `HeroesComponent` to support the *add* and *delete* actions used in the template.
321326
Let's start with *add*.
@@ -390,7 +395,6 @@ block filetree
390395
.file typings ...
391396
.file index.html
392397
.file package.json
393-
.file sample.css (new)
394398
.file styles.css
395399
.file systemjs.config.json
396400
.file tsconfig.json
@@ -414,18 +418,18 @@ block file-summary
414418
`toh-6/ts/app/app.component.ts,
415419
toh-6/ts/app/heroes.component.ts,
416420
toh-6/ts/app/heroes.component.html,
421+
toh-6/ts/app/heroes.component.css,
417422
toh-6/ts/app/hero-detail.component.ts,
418423
toh-6/ts/app/hero-detail.component.html,
419424
toh-6/ts/app/hero.service.ts,
420-
toh-6/ts/app/in-memory-data.service.ts,
421-
toh-6/ts/sample.css`,
425+
toh-6/ts/app/in-memory-data.service.ts`,
422426
null,
423427
`app.comp...ts,
424428
heroes.comp...ts,
425429
heroes.comp...html,
430+
heroes.comp...css,
426431
hero-detail.comp...ts,
427432
hero-detail.comp...html,
428433
hero.service.ts,
429-
in-memory-data.service.ts,
430-
sample.css`
434+
in-memory-data.service.ts`
431435
)

0 commit comments

Comments
 (0)