I'm new to Angular, but sounds like a job for a service. Would a .json file suit your needs better?
You don't intend to save any changes to that file do you? Just store them in the current session? Adrian On 4 November 2014 16:07, Bhavin Patel <[email protected]> wrote: > Hi, > I was wondering if we could read the constants that are defined in > configuration.js all at a time and displaying it on a web page so that they > can be updated.(I know they can be updated because I tried updating them > through the browser and it updates but when I go to next page or refresh > ,it comes back to its original value, I guess because the file is being > loaded again) > > One technique is to inject all the constants in a service and print them, > but there are like 100 constants... so cant use this technique. > > Is there any other way to read all the constants at a time and show them > on a web page? > > Thank You, > Bhavin > > -- > 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/d/optout. > -- 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/d/optout.
