<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.2.3/css/bulma.css" /> <link rel="stylesheet" href="../styles.css" /> <link rel="stylesheet" href="styles.css" /> </head> <body> <nav> <h1><span class="index">12</span>Component communication 1: custom events</h1> <ul> <li><a href="../lesson11">Prev</a></li> <li><a href="../lesson13">Next</a></li> </ul> </nav> <div id="root" class="container"> <coupon @applied="onCouponApplied"></coupon> <h1 v-if="couponApplied">You used a coupon!</h1> </div> <script src="../lib/vue-2.1.3.js"></script> <script src="code.js"></script> </body> </html>