Skip to content

AIO(docs) Routing & Navigation section missing CrisisCenterModule.ts #21174

Closed

Description

@hartraft

I'm submitting a...


[ ] 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

In the AIO docs for "Routing & Navigation" Milestone 4: Crisis center feature, step 4 mentions to import the CrisisCenterModule but no reference has been mentioned in the previous steps. This may be confusing

Expected behavior

Add a code snippet for the CrisisCenterModule

Minimal reproduction of the problem with instructions

N/A

What is the motivation / use case for changing the behavior?

Make it easier to follow the AIO docs

Environment


Angular version: 5.1.2

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Activity

  1. hartraft commented on Jan 5, 2018

    @hartraft
    ContributorAuthor

    Thanks for taking a look at this. Just to add a bit more detail on the "Routing and Navigation" docs, I also saw that in Milestone 1 and Milestone 2, all components have inline templates in the examples (for src/app/app.component.ts, src/app/hero-list.component.ts etc.).

    However by the time you get to Milestone 3, the plunker and zip mentioned have components using the templateUrl.

    This example recreates the heroes feature in the "Services" episode of the Tour of Heroes tutorial, and you'll be copying much of the code from the Tour of Heroes: Services example code / download example.

    and

    Add heroes functionality

    Follow these steps:

    • Create the src/app/heroes folder; you'll be adding files implementing hero management there.

    • Delete the placeholder hero-list.component.ts that's in the app folder.

    • Create a new hero-list.component.ts under src/app/heroes.

    • Copy into it the contents of the app.component.ts from the "Services" tutorial / download example.

    • Make a few minor but necessary changes:

      • Delete the selector (routed components don't need them).
      • Delete the <h1>.
      • Relabel the <h2> to <h2>HEROES</h2>.
      • Delete the <hero-detail> at the bottom of the template.
      • Rename the AppComponent class to HeroListComponent.

    This causes two issues. First the plunker and zip are inconsistent with the rest of the documentation in the "Routing & Navigation" section.

    Secondly, the step "Make a few minor but necessary changes:" wouldn't make sense as there is no mention of <h1> and other elements (as the linked examples only include the templateUrl line).

    Sure we can do a translation in our heads but the documentation is incorrect as it stands. Perhaps it's a regression from changing the documentation examples. Do you want me to create a new issue for this instead?

  2. added this to the needsTriage milestone on Feb 26, 2018
  3. modified the milestones: needsTriage, Backlog on Jun 4, 2018
  4. brandonroberts commented on Sep 26, 2018

    @brandonroberts
    Contributor

    Fixed via #20023

  5. angular-automatic-lock-bot commented on Sep 14, 2019

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions