The ContactsApp.Show Sub-Module
Explore how to create the ContactsApp.Show sub-module by building a controller and view that display individual contact details using Marionette.js. Understand how to handle templates, instantiate views in controllers, and simplify view management without manual cleanup. This lesson helps you implement dedicated contact display views with efficient event handling.
We'll cover the following...
We'll cover the following...
Creating the Show controller
Since displaying a given contact is a different functionality than listing all the contacts, we’ll need a new submodule: ContactsApp.Show. Let’s start by creating the controller: ...