0

I'm doing something like this: How to create separate AngularJS controller files?

But I'm trying to share data between these separate controllers using a service. I'm unable to do it. Can you tell me if its even possible to share data between controllers(that are in separate files) using one service in the app.js file?

Community
  • 1
  • 1
katpally
  • 11
  • 2
  • 3
    Yes I do this all the time. Maybe you could share some more code? Or a jsfiddle? – Doug T. Jul 29 '14 at 17:20
  • If you're following the advice from the answer to the linked question, you're probably just forgetting to include all the files in your index.html – cfs Jul 29 '14 at 18:27
  • http://stackoverflow.com/questions/21444100/angularjs-how-to-http-get-data-and-store-it-in-service, this is the problem i have, but is no way mentioned to share the http response between controllers. can anyone help? – katpally Jul 29 '14 at 20:26

0 Answers0