Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Vue({
- el: '#app',
- data: {
- counter: 0,
- x: 0,
- y: 0
- },
- methods: {
- increase: function(step){
- this.counter += step;
- },
- updateCoordinates: function(event){
- this.x = event.clientX;
- this.y = event.clientY;
- },
- alertMe: function () {
- alert('Alert');
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement