I'd recommend to implement services to hold your shared data and deal with the communications etc.
You may also bind those services to your rootScope in the applications run method. 2014-02-13 14:52 GMT+01:00 Raul Vieira <[email protected]>: > To have variables visible throughout your ng application I would consider > adding them to the root scope. If these vars need to visible outside of ng > then you'll need to add them to the window (hopefully in a namespace you've > created). > > Raul > > Sent from my iPad > > On Feb 13, 2014, at 8:41 AM, Pushpendra Kumar <[email protected]> > wrote: > > Hello All, > > I want to have some global variables those will be > initialized on login. > And then I will use these variables in whole application. > Please suggest e an idea to have global variables and > constants. > > > > Thanks, > Pushpendra > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. > -- Bernhard Rode M.Sc. (Master of Computer Science and Media) fon +49.171.5629409 mail [email protected] twitter @ebbo google+ *google.com/+BernhardRode <http://www.google.com/+BernhardRode>* twitter twitter.com/ebbo facebook facebook.com/bernhard.rode -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
