Skip to content

Docs: Mention $router in "Programmatic Navigation" section #1136

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

Closed
fvictorio opened this issue Feb 5, 2017 · 0 comments
Closed

Docs: Mention $router in "Programmatic Navigation" section #1136

fvictorio opened this issue Feb 5, 2017 · 0 comments

Comments

@fvictorio
Copy link

fvictorio commented Feb 5, 2017

This may be obvious, but it took me some time to figure out.

I wanted to navigate programmatically in a component and it wasn't clear for me how to do it. The obvious answer is to use this.$router.go in a component method, but the "Programmatic Navigation" section in the documentation only refers to the "Router instance".

As far as I can tell, the only section that mentions the injected instance is the "Component injections" section.

Thanks.

posva added a commit that referenced this issue Apr 4, 2017
yyx990803 pushed a commit that referenced this issue Apr 6, 2017
* Add note about $router in navigation

Closes #1136

* Update navigation.md
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

2 participants