We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The use of the this.$store is not available when using Vuex and vue-router. This may be an issue with vue-router rather than Vuex.
this.$store
The text was updated successfully, but these errors were encountered:
import Vue from 'vue'; import VueRouter from 'vue-router'; import VueResource from 'vue-resource'; import store from 'Store'; // Install plugins Vue.use(VueRouter); Vue.use(VueResource); const app = { store, data() { console.log(this.$store); // not defined return {}; }, }; // Create router const router = new VueRouter({}); // Map router router.map( /* mapping */ ); // Start router router.start(app, 'html');
Sorry, something went wrong.
This is known issue in 0.3.0. Will be fixed in the next release.
I am getting this exact problem. Is there any reason this would be an issue again?
No branches or pull requests
The use of the
this.$store
is not available when using Vuex and vue-router. This may be an issue with vue-router rather than Vuex.The text was updated successfully, but these errors were encountered: