Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container" id="app">
- <div class="wrapper">
- <h1 class="caption">It's event time! Click on button!</h1>
- <button class="button" v-on:click="onClick">Press me</button>
- </div>
- </div>
- new Vue({
- el: "#app",
- method: {
- onClick: function () {
- alert('Hi, it's me!')
- }
- }
- });
Add Comment
Please, Sign In to add comment