index.html 798 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.2.3/css/bulma.css" />
  7. <link rel="stylesheet" href="../styles.css" />
  8. <link rel="stylesheet" href="styles.css" />
  9. </head>
  10. <body>
  11. <nav>
  12. <h1><span class="index">12</span>Component communication 1: custom events</h1>
  13. <ul>
  14. <li><a href="../lesson12">Prev</a></li>
  15. <li><a href="../lesson14">Next</a></li>
  16. </ul>
  17. </nav>
  18. <div id="root" class="container">
  19. <coupon @applied="onCouponApplied"></coupon>
  20. <h1 v-if="couponApplied">You used a coupon!</h1>
  21. </div>
  22. <script src="../lib/vue-2.1.3.js"></script>
  23. <script src="code.js"></script>
  24. </body>
  25. </html>