How do you share data between controllers?
Answer / Balvinder Singh
Data can be shared between AngularJS controllers by defining a service and injecting it into both controllers. Services are designed for this purpose: to hold application-level data and behavior.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are angular 2 hooks?
What is life cycle hook in angular?
What are some differences between angular 2 and 4?
List at down the ways in which you can communicate between applications modules using core angular functionality.
What a digest cycle is in angularjs?
What are directive behaviors?
What is component in angularjs 2 ?
What are the filters in angular js?
How to implement caching in angular 1.x?
What is single page application?
Is angular open source?
What is root injector in angular?