Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helpers for dynamically matching paths #249

Open
bryanrsmith opened this issue Nov 12, 2015 · 3 comments
Open

Add helpers for dynamically matching paths #249

bryanrsmith opened this issue Nov 12, 2015 · 3 comments

Comments

@bryanrsmith
Copy link
Contributor

We should expose the route recognizer functionality in a convenient way to make it easier to match incoming paths to routes in dynamic handlers. That could help with some scenarios where routes are loaded from remote data, etc. We should be able to refactor some of the createNavigationInstruction code to make it happen.

let recognizer = router.createRecognizer(routes);
...
let route = recognizer.recognize(instruction.fragment);
@valichek
Copy link

@bryanrsmith Looks like it is a good replacement for router.reset()?

@Alexander-Taran
Copy link
Contributor

No activity since nov 2015
maybe can be closed

@EisenbergEffect
Copy link
Contributor

Let's keep this open as a potential improvement, albeit low priority.

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

No branches or pull requests

4 participants