A typical Angular app employs a number of framework artefacts to achieve any functionality. Any Angular app has multiple views, controllers, services, filters, and also directives, all working together in unison. The need for communication between these constructs thus becomes imperative.
This section highlights how communication can happen among these constructs and how data is shared. It tries to address scenarios such as:
How to send data from one view to another on page transition
How to communicate and or share data:
Between controllers
Between controllers and services, other controllers, or directives
Via inter-directive communication and even inter-service communication
We have used patterns at various times throughout the book. The aim here is to consolidate our learning and provide a quick reference.