Skip to content

there is no meta info in route. #31

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
Sloaix opened this issue Nov 7, 2016 · 2 comments
Closed

there is no meta info in route. #31

Sloaix opened this issue Nov 7, 2016 · 2 comments

Comments

@Sloaix
Copy link

Sloaix commented Nov 7, 2016

there is no meta info in route.only path,params,query.

so i can't get the meta info in store.

@yyx990803
Copy link
Member

router 2.0 route meta is not directly exposed. You need to check route.matched.forEach(r => r.meta): http://router.vuejs.org/en/advanced/meta.html

@wolthers
Copy link

wolthers commented Dec 5, 2016

@yyx990803 Matched isn't exposed on store, so checking matched is only possible in a guard, which is not always what you want. There's an open PR on this: #32

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

3 participants