learnin-some-vue/index.html
2018-04-13 22:50:29 -04:00

19 lines
466 B
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<script src="vue.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id='app'>
<button type="button" name="button" @click="show = !show">Switch</button>
<p v-if="show">You can see me</p>
<p v-else>Now you see me</p>
<p>Do you also see me?</p>
</div>
<script src="app.js" charset="utf-8"></script>
</body>
</html>