What You Have Learned
In this lesson, you have:
Learned the benefits of loosely coupled architecture (pages 258–259)
Dispatched events (pages 259–263)
Declared events for a component (pages 263–265)
Identified the need for your own event classes (pages 265–266)
Created and used an event subclass (pages 266–270)
Learned about event bubbling (pages 270–275)
Created the ProductEvent class (pages 276–281)
Used ProductEvent to add and remove a product from the cart (pages 281–283)
Used CollectionEvent to update the cart total (pages 283–285)
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial