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

docs(ts/tutorial/routing): Remove HeroDetailComponent in HeroesComponent file #1398

Closed
LoganDupont opened this issue May 15, 2016 · 1 comment

Comments

@LoganDupont
Copy link

LoganDupont commented May 15, 2016

After you remove <my-hero-detail [hero]="selectedHero"></my-hero-detail> from the templateurl: 'app/heroes.component.html' and use instead a router navigation to HeroDetail. I think you don't need the import { HeroDetailComponent }and directives: [HeroDetailComponent] anymore in the HeroesComponent file.

@wardbell
Copy link
Contributor

Good catch! I took your suggestion in commit a4bc455 of PR #1066

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants