learnin-some-vue/index.html

23 lines
589 B
HTML
Raw Normal View History

2018-04-13 14:54:53 +00:00
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
2018-04-13 17:13:11 +00:00
<script src="vue.js"></script>
2018-04-13 14:54:53 +00:00
</head>
<body>
<div id='app'>
2018-04-13 17:49:13 +00:00
<button @click="increase(2, $event)">Click Me</button>
2018-04-13 18:13:44 +00:00
<button @click="counter++">Click Me</button>
2018-04-13 17:44:28 +00:00
<p>{{ counter }}</p>
2018-04-13 17:53:25 +00:00
<p v-on:mousemove="updateCoordinates">Coordinates {{x}}, {{y}}
<span v-on:mousemove.stop.prevent=""> DEAD SPOT</span>
</p>
2018-04-13 17:55:37 +00:00
<input type="text" v-on:keyup.enter='alertMe'>
2018-04-13 14:54:53 +00:00
</div>
<script src="app.js" charset="utf-8"></script>
</body>
</html>