How about loading a script tag in your html head that points to a remote javascript file? If you need something before angular bootstraps, then you'll need to accomplish it outside of angular.
On Thursday, May 29, 2014 8:46:30 AM UTC-6, Joberto Diniz wrote: > > In my project, I need several configs values to configure the app > accordingly. > These configs would be use in the angular config phase, run phase and in > the services. > > I could create a angular service, like > angular.module('myapp').value(OBJECT_WITH_CONFIG_VALUES). However, I can't > do that, because the config values MUST be fetched from a remote server. > So, I would execute an http get call, get the json result, and only then > use the config values from the json result. > > How can I accomplish that? > -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.