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 a paragraph on how to use router outside of a component defining router #12

Open
Alexander-Taran opened this issue Mar 6, 2018 · 0 comments

Comments

@Alexander-Taran
Copy link
Member

Alexander-Taran commented Mar 6, 2018

issue in router repo for reference:
aurelia/router#412

For a beginer it was not obvious how to get router inside a vm
other than configureRouter
and using that one w/o routes ended up badly

Got to add it in meaningful way.

Most common use case is to navigate in code
I'd go with that..

if you want to use router.navigate... inside a component that does not define routes...
...
some text giving an example of
import {}

@autoinject / js example of DI

and using a method..

reference to DI section of docs

mention other possible use cases of an injected router class..

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

No branches or pull requests

1 participant