Handling Menu Clicks
Explore how to handle menu click events in Marionette by triggering navigation actions from item views and processing them in controllers. Learn to simplify event triggers by moving them into models to manage your application's navigation efficiently.
We'll cover the following...
We'll cover the following...
The last thing we need to modify in our header menu is managing user clicks on the various entries.
Handling the click event
Obviously, we’ll start by handling the click event in our item view in line 6: ...