Sharing data between controllers
09 Oct 2016
This is the most frequently asked question, when someone wants to test your Angular knowledge.
- Broadcast data to all controllers/entire application.
- When you want to just inform the parent controller, use emit instead of broadcast.
- Use services
- Use root scope (not recommended)