AngularJS has become the go-to framework for many web developers. It is an all-in-one solution for quickly building front-end single-page web applications. A trade-off, though, is that we have to work around the system's limitations. One of these is the difficulty of communicating between controllers.
In this Coffee Break Course, designed to teach a new skill or concept in a single sitting, Envato Tuts+ instructor Reggie Dawson will show you some simple techniques for sharing data between Angular controllers. You'll see how to pass data with services, and you'll also learn a trick for passing parameters along with router state.
1. Sharing Data Between Angular Controllers
[SOUND] AngularJS has become the go to framework for many users. Those that use this framework have become comfortable with the patterns the framework uses. One of the limitations of this framework is the ability to share data between controllers. Control this from the backbone of an angular app and normally they are unable to pass data between each other. Unfortunately what many developers don't know is that it is relatively simple to share data between controllers. In this video, I will go over a few methods that will allow us to share data between our angular controllers. After the video, you should look at your angular apps in a new way and perhaps you will come away with a few tricks that you can use in the future.