Sha256: 7a7268c23e1d5b737d063276db4fab7fe8df1f580bbae18f27949d0f4d157fbe

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 Bytes

Contents

// https://vuex.vuejs.org/guide/getters.html
//
// Getters provide a way to re-use a computation of derived state.  Getters
// are like computed properties for stores.  A getter's result is cached based
// on its dependencies, and will only re-evaluate when some of its dependencies
// have changed.
//
export const getters = {
  // /**
  //  * getters['<%= store_name %>/counter']
  //  */
  // counter: (state) => () => {
  //   return state.counter
  // },
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vue-generators-0.1.3 lib/vue/generators/vue/store/templates/getters.template
vue-generators-0.1.2 lib/vue/generators/vue/store/templates/getters.template