-
Notifications
You must be signed in to change notification settings - Fork 877
docs(toh-6/ts): minor edits and enhancements #1686
docs(toh-6/ts): minor edits and enhancements #1686
Conversation
@kwalrath @Foxandxss @johnpapa @wardbell : ready for review. As usual, because of the addition of blocks causes changes in indentation, it is best to review changes by ignoring whitespace, like this. Please see the original PR comment for a description of changes (besides copyedits). cc @thelgevold |
533d021
to
c813689
Compare
NOTE: this PR depends on angular#1686. Dart prose and example match TS except that: - No child-to-parent event emission occurs. - Support for Add Hero is added as an unconditional feature of the Heroes view. - http `_post` takes only a name - http `delete` takes only a hero id. - The Dart in-memory-data-service has been dropped in favor of an implementation based on the "standard" `http.testing.MockClient` class.
The copyedits look reasonable to me, but I'll leave the content review to the TS experts. |
.alert.is-helpful | ||
:marked | ||
This chapter is an introduction to the !{_Angular_http_library}. | ||
Please don't be distracted by the details of this backend substitution. Just follow along with the example. |
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 personally don't like this two lines. Perhaps the tone.
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 agree, but that was in the original TS text so I left it as is (but excluded it from the Dart edition). Remember that for this time, my goal was mainly to proof read, not a general edit.
I left two comments on the prose, but the rest are good to me 👍 |
@kwalrath @Foxandxss : thank you both for reviewing this. |
I was reviewing my notes and noticed I had forgotten to remove an unnecessary change to a .css, relative to toh-5 (new |
Is |
Changes to prose: - Complete TODO item of displaying `heroes.component` errors. - Mainly copyedits. - Add of blocks statements so that prose can be used on Dart side. - Show excerpt and briefly explain of changes (previously missing): - `app/hero-detail.component.html` - `app/heroes.component.ts` error handling - Add missing file to changed/added files listing and makeTabs - `toh-6/ts/app/in-memory-data.service.ts, - `toh-6/ts/sample.css` Code changes: - Mainly copyedits - Renamed `heroes.component.ts` `delete` to `deleteHero` to match naming of other methods
d4b135c
to
78a7a10
Compare
@kwalrath : rebased. Hi @Adam-Meisen : while it is true that It may make sense, as you have proposed, to merge the |
NOTE: this PR depends on angular#1686. Dart prose and example match TS except that: - No child-to-parent event emission occurs. - Support for Add Hero is added as an unconditional feature of the Heroes view. - http `_post` takes only a name - http `delete` takes only a hero id. - The Dart in-memory-data-service has been dropped in favor of an implementation based on the "standard" `http.testing.MockClient` class.
But then why does the file just appear at the end of part 6 without being
|
Adam: btw, I agree with your observations, including the idea of eliminating the |
Sorry if I came off as accusatory, I agree with you. If it helps, |
No worries (I could have been clearer from the start). Thanks for that info. |
Any objections to me merging this change? @Foxandxss? |
Works for me. |
NOTE: this PR depends on angular#1686. Dart prose and example match TS except that: - No child-to-parent event emission occurs. - Support for Add Hero is added as an unconditional feature of the Heroes view. - http `_post` takes only a name - http `delete` takes only a hero id. - The Dart in-memory-data-service has been dropped in favor of an implementation based on the "standard" `http.testing.MockClient` class.
NOTE: this PR depends on angular#1686. Dart prose and example match TS except that: - No child-to-parent event emission occurs. - Support for Add Hero is added as an unconditional feature of the Heroes view. - http `_post` takes only a name - http `delete` takes only a hero id. - The Dart in-memory-data-service has been dropped in favor of an implementation based on the "standard" `http.testing.MockClient` class.
* docs(toh-6/dart): first edition of prose and example code NOTE: this PR depends on #1686. Dart prose and example match TS except that: - No child-to-parent event emission occurs. - Support for Add Hero is added as an unconditional feature of the Heroes view. - http `_post` takes only a name - http `delete` takes only a hero id. - The Dart in-memory-data-service has been dropped in favor of an implementation based on the "standard" `http.testing.MockClient` class. * post-review changes
Changes to prose:
heroes.component
errors.block
statements so that prose can be used on Dart side.app/hero-detail.component.html
app/heroes.component.ts
error handlingtoh-6/ts/sample.css
Code changes:
heroes.component.ts
delete
todeleteHero
to matchnaming of other methods
Contributes to #1628.