Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Support router registration a la https://github.com/angular/angular/pull/12696 #829

Closed
stevenkampen opened this issue Nov 25, 2016 · 1 comment
Assignees

Comments

@stevenkampen
Copy link
Contributor

stevenkampen commented Nov 25, 2016

As of angular version 2.3.0-beta.0, the router should be registered on ng.coreTokens, so we can take advantage of that and not require the router injection into the root component.

@mobinni
Copy link
Contributor

mobinni commented Nov 28, 2016

Like the provider tokens, angular now supports getting the router component from the coreTokens injector. If it's there you will get a component reference, otherwise it will return "Null?". Provide support for this feature, with fallback for pre-2.3 router.

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