Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <script src="https://unpkg.com/vue/dist/vue.js"></script>
  <title>JS Bin</title>
</head>
<body>
<div id="app">
  <button v-on:click="increase">Click меня</button>
  <p>{{counter}}</p>
  </div>
</body>
</html>
 
new Vue({
  el: "#app",
  data: {
    counter: 0
  },
  methods: {
    increase: function(){
      this.counter++;
    }
    
  }
  
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
alexandr2006pro
0viewers