- Practice sharing data between controllers
- Inject services and dependencies into your controllers
- Stretch Goal: change from
controller assyntax to$scope
- Inject the
PostalServiceservice into the MailBoxes controller and render all the letters' subjects to the page. - Create a new controller called
NewMailControllerand inject thePostalServiceservice into it - Create a new method in
PostalServicethat adds a letter to thelettersarray. - Add
NewMailControllertoindex.htmland wire it up so that when a user enters a new letter it's added to thePostalService? - Create a
ShowLetterControllerand inject thePostalServicecontroller into it?
ShowLetterControllershould be in charge of showing a single letter and marking it read or unread
- Add delete functionality
