[Vuejs]-Can't access getters in the store for Vue when in a template

2👍

getters function in a similar manner to states. Therefore to resolve them you call a parameter not a method, i.e.

blipp: function() { return this.$store.getters.getBlipp }

In this case you probably want to rename getBlipp to simply blipp

I put together a JSFiddle which shows the various ways you can interact with vuex’s store, hope it helps:

Example Vuex JSFiddle

👤GuyC

Leave a comment