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(),
|
label: 'You loaded this page on ' + new Date().toLocaleString(),
|
||||||
isActive: true,
|
isActive: true,
|
||||||
hasError: false
|
hasError: false,
|
||||||
|
counter: 0
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
reverseMessage: function () {
|
reverseMessage: function () {
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
<input v-model="message"> <span>{{ lenMessage }}</span>
|
<input v-model="message"> <span>{{ lenMessage }}</span>
|
||||||
|
|
||||||
<p class="static" v-bind:class="{ active: isActive, 'text-danger': hasError }">class</p>
|
<p class="static" v-bind:class="{ active: isActive, 'text-danger': hasError }">class</p>
|
||||||
|
|
||||||
|
<button v-on:click="counter += 1">{{ counter }} clics</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="app.js"></script>
|
<script src="app.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue