Icontem

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

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy  >  Vuex Examples  >  app/components/test-counter-hot/store/mutations.js  >  Download  
File: app/components/test-counter-hot/store/mutations.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:
Date: 2 years ago
Size: 326 bytes
 

Contents

Class file image Download
define([], function () {
    var mutations = {
        increment: function (state) {
            state.count++;
            state.history.push('increment');
        },
        decrement: function (state) {
            state.count--;
            state.history.push('decrement');
        }
    };
    return mutations;
});