Re: [AngularJS] Reading constants from configuration.js and displaying on a web page

2014-11-04 Thread Bhavin Patel
I am sorry, I didnt get you -- 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@googl

Re: [AngularJS] Reading constants from configuration.js and displaying on a web page

2014-11-04 Thread Adrian Lynch
Then why not: On 4 November 2014 18:06, Bhavin Patel wrote: > You are reading it from a JSON, I want to read it from a JS and also to > make it more clear, please refer to > > http://plnkr.co/edit/dQUj4kvi6oIvtj452xN8?p=preview > > Now, in this my constant structure is a bit different and i ha

Re: [AngularJS] Reading constants from configuration.js and displaying on a web page

2014-11-04 Thread Bhavin Patel
You are reading it from a JSON, I want to read it from a JS and also to make it more clear, please refer to http://plnkr.co/edit/dQUj4kvi6oIvtj452xN8?p=preview Now, in this my constant structure is a bit different and i have shown the way that I can do it, but as there are many constants I can

Re: [AngularJS] Reading constants from configuration.js and displaying on a web page

2014-11-04 Thread Adrian Lynch
This is FAR from perfect and I'd love others to tear it apart: http://plnkr.co/edit/ghu3yv3AZOQkHEk9BXgv?p=preview I'm doing it all in one file, expect the JSON file, to make it easier to view in one go. Rather than just outputting the constants, you'd wack 'em in an input, live edit preferably,

Re: [AngularJS] Reading constants from configuration.js and displaying on a web page

2014-11-04 Thread Bhavin Patel
Hi Adrian, I'm new to Angular JS too and Yeah I don't intend to save any changes to any of the constants.. just change their value for that session. what do you propose to do with .json file? -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To u

Re: [AngularJS] Reading constants from configuration.js and displaying on a web page

2014-11-04 Thread Adrian Lynch
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 wrote: > Hi, > I was wondering if we could r

[AngularJS] Reading constants from configuration.js and displaying on a web page

2014-11-04 Thread Bhavin Patel
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 refres