-
Notifications
You must be signed in to change notification settings - Fork 876
docs(router): Minor content update for Heroes tutorial #1952
Conversation
Not sure if this is valid right now. We changed the guide a bit and I think that this PR is not valid anymore. /cc @brandonroberts |
I have seen the recent PR (#1905) merged by @brandonroberts and feel that routerLinkActive was prematurely added to this first example in that PR. This PR is simply removing it from the first example, but leaving it intact on the later examples where it is more relevant. Unless there has been a major refactoring which has not yet been committed to master, I would say this PR is relevant. |
Before that snippet there is an explanation of what |
@Foxandxss You're quite right, I had updated the wrong ts file! I still haven't managed to get the docs to run up locally due to npm install issues (node-sass on windows!! still trying to solve...), however I've updated the PR to apply the change to the correct ts file. |
I see. You are right on this one, but the solution is not the appropriate one. If you modify that file, the |
I can't run it up locally yet but I just want to say there is a separate example file showing them added immediately after routerLinkActive is discussed. The path to the example file is |
When we create a guide, we have two things:
That means, that the |
Ok that makes sense. Thanks for explaining. I think I know what I need to do now. I will do my best to update the PR and run it all locally to ensure it works. Will let you know when it's done. |
@massimocode I think its fine to be removed from there, but as @Foxandxss stated there needs to be a separate file provided for that example and the |
- Delete routerLinkActive from the earliest code example as it is not relevant to what the user is trying to achieve at that point in the tutorial
@brandonroberts @Foxandxss This has been updated now as per the feedback. Let me know if there's anything else to consider. I have managed to get everything running locally and it all looks good! Also fixed 2 x small spelling mistake in the logging of one of the build tools. |
I am sorry sir, we changed that chapter quite a bit and apart from the typos, I am not sure if the other part is relevant. Could you please rebase this PR or open a new one? Thank you sir. |
Delete routerLinkActive from one of the earlier code examples as it is not relevant to what the user is trying to achieve at that point in the tutorial
When I was running through the tutorial, it said "Finally, add a dashboard navigation link to the template, just above the Heroes link.", but the code sample showed the routerLinkActive attribute added as well to the code. I was wondering "what's that for? why are both links being set as active?". I only realised what it was for later on in the tutorial in the section that describes the directive. It's not relevant to adding a new navigation link and can detract from the flow of the tutorial so it's better it only gets added in the bit that actually discusses it.