Skip to content

RouteData is not available in AsyncRoute #6636

@soulcorrosion

Description

@soulcorrosion

Hello,

Found an issue in AsyncRoutes. It looks like RouteData is not preserved unlike with SyncRoutes.
Please check the following plunker: http://plnkr.co/edit/uc26p2QEMHZgiEYwqeK6?p=preview

Line 21 works, while 22 does not work.
Btw, I also have a question, how can we retrieve the name of the current route? For instance when routerOnActivate is called, I'm able to get the url path but what about the name? I need it to inject in a RouterLink.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions