You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(tutorial) - toh-pt2 could be more clear in the "Expose heroes" section #19714
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
For n00bs, in part 2 of the tutorial, it is not clear where the heroes = HEROES; line should go exactly.
What is the motivation / use case for changing the behavior?
To make it easier for newcomers to angular to follow the tutorial
The order of properties does not matter at all in any kind of class, why should it be "cleared" if it's not a requirement?
Order of class members is just a favor of code style (there're indeed tslint rule for it), but following a tutorial does not mean you need to use the exact same format as the example did, you can use spaces or tabs, single quote or double quote, with or without semicolon according to personal preference.
I have a deep JavaScript background. ;)
It's fine if you don't want to accept. IMHO it could be made more clear
where that statement is supposed to go.
Hey @dogeared thanks for bringing this up. I agree – clarifying this can only help improve the learning experience. I'll make sure to pass this along to the right person on the docs team.
Thanks! There are other places in the tutorial where it tells you to put
something new between `this` and `that`, even though the order isn't
necessarily important. It just makes it more clear.
==============================================
Micah Silverman, CSM <http://bit.ly/WikiScrum>
Phone: 631.606.8928
Co-Author: Mastering Enterprise Javabeans 3.0 <http://bit.ly/MasteringEJB3>
==============================================
"Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as
possible, you are, by definition, not smart enough to debug
it." by Brian Kernighan
==============================================
[image: Namez]
<http://namez.com/profiles/1720-micah-silverman/?autoPlay=true>
Yeah, I know exactly what you mean. Feel free to add any more you notice here or in your PR and to tag me when you do. I've stumbled over some like that and try to fix them when I see them, but haven't done a whole sweep. The more eyes, the better. Thanks again for catching that.
Activity
trotyl commentedon Oct 14, 2017
The order of properties does not matter at all in any kind of class, why should it be "cleared" if it's not a requirement?
Order of class members is just a favor of code style (there're indeed tslint rule for it), but following a tutorial does not mean you need to use the exact same format as the example did, you can use spaces or tabs, single quote or double quote, with or without semicolon according to personal preference.
dogeared commentedon Oct 14, 2017
trotyl commentedon Oct 15, 2017
Angular tutorial assume that you already have JavaScript background, this is not a JavaScript tutorial.
dogeared commentedon Oct 15, 2017
kapunahelewong commentedon Oct 16, 2017
Hey @dogeared thanks for bringing this up. I agree – clarifying this can only help improve the learning experience. I'll make sure to pass this along to the right person on the docs team.
dogeared commentedon Oct 16, 2017
kapunahelewong commentedon Oct 16, 2017
Yeah, I know exactly what you mean. Feel free to add any more you notice here or in your PR and to tag me when you do. I've stumbled over some like that and try to fix them when I see them, but haven't done a whole sweep. The more eyes, the better. Thanks again for catching that.
tbosch commentedon Oct 16, 2017
Would be nice if somebody put a PR together.
dogeared commentedon Oct 16, 2017
1 remaining item
sreevani-ship-it commentedon Jun 17, 2018
PR #19715
angular-automatic-lock-bot commentedon Sep 14, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.