1234567891011121314151617181920 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- <link rel="stylesheet" href="styles.css" />
- </head>
- <body>
- <div id="root">
- <h1 :class="className">Heading 1</h1>
- <button v-on:click="onClick" v-bind:title="title">Hover over me</button>
- <button @click="onClick" :title="title">Over me too</button>
- <button @click="toggleClass" :class="{ 'is-loading': isLoading }">Toggle me</button>
- <button @click="setDisabled" :disabled="isDisabled">Try to click me</button>
- </div>
- <script src="../lib/vue-2.1.3.js"></script>
- <script src="code.js"></script>
- </body>
- </html>
|