Browse Source

event

master
Sergio Álvarez 2 years ago
parent
commit
54fa9ce0b0
  1. 3
      hello/app.js
  2. 2
      hello/index.html

3
hello/app.js

@ -16,7 +16,8 @@ var app = new Vue({
],
label: 'You loaded this page on ' + new Date().toLocaleString(),
isActive: true,
hasError: false
hasError: false,
counter: 0
},
methods: {
reverseMessage: function () {

2
hello/index.html

@ -30,6 +30,8 @@
<input v-model="message"> <span>{{ lenMessage }}</span>
<p class="static" v-bind:class="{ active: isActive, 'text-danger': hasError }">class</p>
<button v-on:click="counter += 1">{{ counter }} clics</button>
</div>
<script src="app.js"></script>

Loading…
Cancel
Save