0

In AngularJS, I have a 3 controllers and in 3 controllers 1 & 2 controller data call the 3 rd controller how it is? using the number of controllers it is occured

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
Sivakumar
  • 1
  • 1
  • 3
    try this link http://stackoverflow.com/questions/12008908/angularjs-how-can-i-pass-variables-between-controllers – Jah Nov 22 '15 at 00:55

1 Answers1

0

The best way to share data between controllers is to write a service. You can find more information about services at this link to the AngularJS documentation.

https://docs.angularjs.org/guide/services

Lexi
  • 324
  • 2
  • 10
  • 18