Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

this.$router.load(...) undefined in app.vue #11

Closed
centrual opened this issue Feb 2, 2017 · 3 comments
Closed

this.$router.load(...) undefined in app.vue #11

centrual opened this issue Feb 2, 2017 · 3 comments

Comments

@centrual
Copy link

centrual commented Feb 2, 2017

Hello Vladimir and Framework7 community,

@Cyber-host opened issue about that at caiobiodere/cordova-template-framework7-vue-webpack#3

I tried same thing in webpack template and it not worked in webpack template too. i checked this object in with console.log and there is no router component.

Have a great day!

@nolimits4web
Copy link
Member

nolimits4web commented Feb 7, 2017

$router available inside of components. From other places it can be accessed like f7.mainView.router or f7.views.main.router inside of onF7Init component method

@centrual
Copy link
Author

centrual commented Feb 8, 2017

Thanks for clear answer @nolimits4web 🥇

@centrual centrual closed this as completed Feb 8, 2017
@cbrhex
Copy link

cbrhex commented Feb 8, 2017

@nolimits4web what if I haven't any template views?

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

3 participants