Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Lesson 9. Using Custom Events

Lesson 9. Using Custom Events

What You Will Learn

In this lesson, you will:

  • Understand the benefits of a loosely coupled architecture

  • Dispatch events

  • Declare events for a component

  • Identify the need for custom event classes

  • Create event subclasses

  • Create and use a CategoryEvent class

  • Create and use a ProductEvent class

  • Use ProductEvent to remove a product from the cart

  • Use ProductEvent to add a product to the cart

  • Use event bubbling

Approximate Time

This lesson takes approximately 2 hours to complete.


  

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