Nuxt/examples/vuex-store-modules/pages/about.vue

9 lines
188 B
Vue
Raw Normal View History

2016-12-26 14:55:00 +00:00
<template>
<div>
<p>
<button @click="$store.commit('increment')">{{ $store.state.counter }}</button><br>
<nuxt-link to="/">Home</nuxt-link>
</p>
</div>
</template>