O'Reilly logo

AngularJS by Example by Chandermani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communication and data sharing patterns

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required