index.html 659 B

1234567891011121314151617181920
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="styles.css" />
  7. </head>
  8. <body>
  9. <div id="root">
  10. <h1 :class="className">Heading 1</h1>
  11. <button v-on:click="onClick" v-bind:title="title">Hover over me</button>
  12. <button @click="onClick" :title="title">Over me too</button>
  13. <button @click="toggleClass" :class="{ 'is-loading': isLoading }">Toggle me</button>
  14. <button @click="setDisabled" :disabled="isDisabled">Try to click me</button>
  15. </div>
  16. <script src="../lib/vue-2.1.3.js"></script>
  17. <script src="code.js"></script>
  18. </body>
  19. </html>