Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const Clicker = {
- computed : {
- umur(){
- return this.$store.state.umur;
- }
- },
- methods : {
- increment(){
- this.store.commit('increment')
- }
- },
- template:`
- <div>
- <h1>Umur : {{umur}}</h1>
- <button @click="increment()">
- +
- </button>
- </div>
- `
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement