index.html 836 B

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