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

docs(toh-6/ts): minor edits and enhancements #1686

Merged
merged 2 commits into from
Jun 27, 2016

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Jun 17, 2016

Changes to prose:

  • Complete TODO item of displaying heroes.component errors.
  • Mainly copyedits.
  • Add of block 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

Contributes to #1628.

@chalin
Copy link
Contributor Author

chalin commented Jun 17, 2016

@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

@chalin chalin mentioned this pull request Jun 17, 2016
6 tasks
@chalin chalin force-pushed the chalin-toh-6-ts-minor-edits-0614 branch from 533d021 to c813689 Compare June 17, 2016 22:53
chalin added a commit to chalin/angular.io that referenced this pull request Jun 17, 2016
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.
@kwalrath
Copy link
Contributor

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.
Copy link
Member

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.

Copy link
Contributor Author

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.

@Foxandxss
Copy link
Member

I left two comments on the prose, but the rest are good to me 👍

@chalin
Copy link
Contributor Author

chalin commented Jun 19, 2016

@kwalrath @Foxandxss : thank you both for reviewing this.
@naomiblack : it would be great if this could be merged before @johnpapa starts carving out the CLI editions.

@chalin
Copy link
Contributor Author

chalin commented Jun 19, 2016

I was reviewing my notes and noticed I had forgotten to remove an unnecessary change to a .css, relative to toh-5 (new #docregion that wasn't used). I just pushed a commit with that change.

@Adam-Meisen
Copy link
Contributor

Adam-Meisen commented Jun 25, 2016

Is sample.css ever explicitly mentioned in the tutorial? I only realized it existed while trying to figure out why my delete buttons didn't look like they do in the examples. In fact, styling the delete buttons seems to be all that sample.css does.

chalin added 2 commits June 26, 2016 11:36
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
@chalin chalin force-pushed the chalin-toh-6-ts-minor-edits-0614 branch from d4b135c to 78a7a10 Compare June 26, 2016 18:36
@chalin
Copy link
Contributor Author

chalin commented Jun 26, 2016

@kwalrath : rebased.

Hi @Adam-Meisen : while it is true that sample.css is not mentioned in the prose, using a sample.css file is a convention followed in other chapters in the Dev Guide and the Cookbook.

It may make sense, as you have proposed, to merge the sample.css styles into one of the component's styles, but before doing so it may make sense to determine if there was a reason for doing it the way it is now.

chalin added a commit to chalin/angular.io that referenced this pull request Jun 26, 2016
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.
@Adam-Meisen
Copy link
Contributor

But then why does the file just appear at the end of part 6 without being
mentioned? Why does a stylesheet linked to in index.html contain contain
rules specific to a single component?
On Jun 26, 2016 1:46 PM, "Patrice Chalin" [email protected] wrote:

@kwalrath https://github.com/kwalrath : rebased.

Hi @Adam-Meisen https://github.com/Adam-Meisen : while it is true that
sample.css is not mentioned in the prose, using a sample.css file is a
convention followed in other chapters in the Dev Guide and the Cookbook.

It may make sense, as you have proposed, to merge the sample.css styles
into one of the component's styles, but before doing so it may make sense
to determine if there was a reason for doing it the way it is now.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1686 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AA-2UEbc8v1U4TSHpWeeTgnjfqwgKrYWks5qPskRgaJpZM4I4yIc
.

@chalin
Copy link
Contributor Author

chalin commented Jun 26, 2016

Adam: btw, I agree with your observations, including the idea of eliminating the sample.css file as you have proposed already. I was just suggesting that we (docs team, including myself) first take a broader look to understand why the current approach exists both for this chapter and the other chapters. (As to the lack of mention of sample.css, that could be quickly fixed by adding an appropriate sentence to the prose.)

@Adam-Meisen
Copy link
Contributor

Sorry if I came off as accusatory, I agree with you.

If it helps, sample.css first appeared in e4db340464f5955670c0ce4e61587875a7d334b3 (merged in PR #1066) and has not been touched by any commit since. It seems that either no one noticed it in the PR, or no one thought it was worth mentioning.

@chalin
Copy link
Contributor Author

chalin commented Jun 26, 2016

No worries (I could have been clearer from the start). Thanks for that info.

@kwalrath
Copy link
Contributor

Any objections to me merging this change? @Foxandxss?

@Foxandxss
Copy link
Member

Works for me.

@kwalrath kwalrath merged commit 3fe0fb0 into angular:master Jun 27, 2016
@chalin chalin deleted the chalin-toh-6-ts-minor-edits-0614 branch June 27, 2016 21:16
chalin added a commit to chalin/angular.io that referenced this pull request Jun 28, 2016
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.
chalin added a commit to chalin/angular.io that referenced this pull request Jun 28, 2016
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.
kwalrath pushed a commit that referenced this pull request Jun 28, 2016
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants