event
This commit is contained in:
parent
f5a209ca1b
commit
54fa9ce0b0
|
@ -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 () {
|
||||
|
|
|
@ -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…
Reference in New Issue