My understanding was that the config block runs during app bootstrapping.  I 
read the requirement to indicate on login.  If login is part of the same app 
then how will this work?

Sent from my iPhone

> On Feb 13, 2014, at 5:24 PM, Jeff Hubbard <[email protected]> wrote:
> 
> This is what I would recommend as well. Injection is awesome, and you should 
> use as much of it as you need--rather than polluting scopes or having a 
> "configuration holding" service.
> 
>> On Thursday, February 13, 2014 6:53:49 AM UTC-8, Alesei N wrote:
>> You can use
>> 
>> .value('config',{});
>> 
>> Then inject it in your main controller, where you could expose this config 
>> through $rootScope.
>> 
>> Let me know if you need more configuration.
>> 
>> 
>>> On Thursday, February 13, 2014 7:41:22 AM UTC-6, Pushpendra Kumar 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