- Practice sharing data between controllers
- Inject services and dependencies into your controllers
- Stretch Goal: change from
controller as
syntax to$scope
- Inject the
PostalService
service into the MailBoxes controller and render all the letters' subjects to the page. - Create a new controller called
NewMailController
and inject thePostalService
service into it - Create a new method in
PostalService
that adds a letter to theletters
array. - Add
NewMailController
toindex.html
and wire it up so that when a user enters a new letter it's added to thePostalService
? - Create a
ShowLetterController
and inject thePostalService
controller into it?
ShowLetterController
should be in charge of showing a single letter and marking it read or unread
- Add delete functionality