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

9 lines
192 B
Vue
Raw Normal View History

<template>
<div>
<p>
<button @click="$store.commit('increment')">{{ $store.state.counter }}</button><br>
<router-link to="/">Home</router-link>
</p>
</div>
</template>