Skip to content

ng generate route <name> created scaffolds not working. #989

@UzairNoman

Description

@UzairNoman

I created the routes with angular cli, it created all the scaffolds and necessary references in the parent component :

@Routes([ {path: '/hero', component: HeroComponent} ])

Also added the router outlet tag in the parent component's HTML template.Everything seems fine but still when i try to access that route,I see the parent template outputting but component whose template has to be resolved in the router outlet tag is not visible.
Although when I tried to make the project folder with npm as guided in the official angular docs,route works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions