File: app/components/test-counter-hot/counter.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Vuex Examples   app/components/test-counter-hot/counter.js   Download  
File: app/components/test-counter-hot/counter.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Vuex Examples
Example apps using Vuex state management pattern
Author: By
Last change: Update of app/components/test-counter-hot/counter.js
Date: 2 years ago
Size: 585 bytes
 

Contents

Class file image Download
define([ 'vuex', 'app/components/test-counter-hot/store/index', 'text!app/components/test-counter-hot/counter.html', ], function (Vuex, store, template) { // Create component class var CounterHot = { name: 'CounterHot', store: store, template: template, computed: Vuex.mapGetters([ 'count', 'recentHistory' ]), methods: Vuex.mapActions([ 'increment', 'decrement', 'incrementIfOdd', 'incrementAsync' ]) } return CounterHot; });