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

Tour of Heros: hero-search documentation not included in dashboard #1996

Closed
@GeoTracker2016

Description

@GeoTracker2016

In https://angular.io/docs/ts/latest/tutorial/toh-pt6.html, the Tour of Heroes tutorial on HTTP, hero-search is introduced. Some linkage is missing to get the search box to show up. I have tracked down the issue and now have it working. Here is what needs to be added:

  1. In dashboard.component.html the last line should be:
    <hero-search></hero-search>
    so we know where to put the search component.
  2. In dashboard.component.ts, we need to import the service with:
    import { HeroSearchComponent } from './hero-search.component';
    and include the directive for the component with:
    directives: [HeroSearchComponent]
    as the last line of @component.

All of this was supposed to be inferred from the sentence:

Finally, we add the HeroSearchComponent to the bottom of the DashboardComponent. Run the app again, go to the Dashboard, and enter some text in the search box below the hero tiles. At some point it might look like this.

These needs to be fixed to appropriately describe how to get the search component into the dashboard.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions