Exercise: Events and Bubbling

Test your knowledge about bubbling an event from child views in Marionette.

Event bubbling from child views

Modify the highlightName handler in the List.Contact view so that when a row is clicked, the controller prints the model data to the console with console.log("Highlighting toggled on model: ", myModelInstance);.

Write your solution under the comments mentioned below in the following files:

  • list_controller.js

  • list_view.js

Code playground

Get hands-on with 1200+ tech skills courses.