This repository was archived by the owner on Dec 4, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 875
docs(toh-6) move styles from sample.css to heroes.component.css #1751
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -319,7 +319,9 @@ block add-new-hero-via-detail-comp | |
The user can *delete* an existing hero by clicking a delete button next to the hero's name. | ||
Add the following to the heroes component HTML right after the hero name in the repeated `<li>` tag: | ||
+makeExcerpt('app/heroes.component.html', 'delete') | ||
|
||
:marked | ||
Add the following to the bottom of the `HeroesComponent` CSS file: | ||
+makeExcerpt('app/heroes.component.css', 'additions') | ||
:marked | ||
Now let's fix-up the `HeroesComponent` to support the *add* and *delete* actions used in the template. | ||
Let's start with *add*. | ||
|
@@ -415,7 +417,9 @@ block observables-section-intro | |
The component template is simple — just a text box and a list of matching search results. | ||
|
||
+makeExample('app/hero-search.component.html') | ||
|
||
:marked | ||
We'll also want to add styles for the new component. | ||
+makeExample('app/hero-search.component.css') | ||
:marked | ||
As the user types in the search box, a *keyup* event binding calls the component's `search` method with the new search box value. | ||
|
||
|
@@ -559,6 +563,7 @@ block filetree | |
.file hero-detail.component.html | ||
.file hero-detail.component.ts | ||
.file hero-search.component.html (new) | ||
.file hero-search.component.css (new) | ||
.file hero-search.component.ts (new) | ||
.file hero-search.service.ts (new) | ||
.file rxjs-operators.ts | ||
|
@@ -572,7 +577,6 @@ block filetree | |
.file typings ... | ||
.file index.html | ||
.file package.json | ||
.file sample.css (new) | ||
.file styles.css | ||
.file systemjs.config.json | ||
.file tsconfig.json | ||
|
@@ -597,30 +601,32 @@ block file-summary | |
`toh-6/ts/app/app.component.ts, | ||
toh-6/ts/app/heroes.component.ts, | ||
toh-6/ts/app/heroes.component.html, | ||
toh-6/ts/app/heroes.component.css, | ||
toh-6/ts/app/hero-detail.component.ts, | ||
toh-6/ts/app/hero-detail.component.html, | ||
toh-6/ts/app/hero.service.ts, | ||
toh-6/ts/app/in-memory-data.service.ts, | ||
toh-6/ts/sample.css`, | ||
toh-6/ts/app/in-memory-data.service.ts`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the hero-search.component files be added here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As a separate |
||
null, | ||
`app.comp...ts, | ||
heroes.comp...ts, | ||
heroes.comp...html, | ||
heroes.comp...css, | ||
hero-detail.comp...ts, | ||
hero-detail.comp...html, | ||
hero.service.ts, | ||
in-memory-data.service.ts, | ||
sample.css` | ||
in-memory-data.service.ts` | ||
) | ||
|
||
+makeTabs( | ||
`toh-6/ts/app/hero-search.service.ts, | ||
toh-6/ts/app/hero-search.component.ts, | ||
toh-6/ts/app/hero-search.component.html, | ||
toh-6/ts/app/hero-search.component.css, | ||
toh-6/ts/app/rxjs-operators.ts`, | ||
null, | ||
`hero-search.service.ts, | ||
hero-search.component.ts, | ||
hero-search.service.html, | ||
hero-search.component.css, | ||
rxjs-operators.ts` | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why git decided this was a rename operation when I rebased, but I don't think that hurts anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right.