Define the message form controller (Listing 16.64, 65)
Extract formController (Listing 15.66, 67, 68)
Remove duplication from userFormController
Move setModel to formController (Listing 15.70)
Add an empty handleSubmit function to messageFormController
Make handleSubmit Call publish (Listing 15.73, 74)
Include the current user in the published message (Listing 15.75, 76)
Grab the message (Listing 15.77, 78)
Prevent the default action of submitting
Prevent an empty message
Cleanup after publish
Implement the feature testing
Add the message form to index.html
Activate controllers in public/js on the server
Activate the message form in the bootstrapping script (Listing 15.81)
Add the missing javascript declaration
Design the chat client by css