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.