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.

Reply via email to