Advertisement
firmansmoh

Clicker.js

Dec 15th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     export const Clicker = {
  2.         computed : {
  3.             umur(){
  4.                 return this.$store.state.umur;
  5.             }
  6.         },
  7.         methods : {
  8.             increment(){
  9.                 this.store.commit('increment')
  10.             }
  11.         },
  12.         template:`
  13. <div>
  14.            <h1>Umur : {{umur}}</h1>
  15.            
  16.             <button @click="increment()">
  17.             +
  18. </button>
  19. </div>      
  20. `
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement