Advertisement
VladikOtez

Vue simple thing

Jun 8th, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  new Vue({
  2.        el: '#app',
  3.         data: {
  4.             counter: 0,
  5.             x: 0,
  6.             y: 0
  7.         },
  8.         methods: {
  9.            increase: function(step){
  10.                this.counter += step;
  11.            },
  12.            updateCoordinates: function(event){
  13.                this.x = event.clientX;
  14.                this.y = event.clientY;
  15.            },
  16.             alertMe: function () {
  17.                alert('Alert');
  18.             }
  19.         }
  20.     })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement