Nuxt/examples/vuex-store-2/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>