angularjs - Loading constant() value dynamically -


Is it possible to declare an angle? Constant ("myLabels", {}), then load it dynamically? In other words, the value of constants is a JSON blob back / set up by a web service?

If so, it looks like (example pseudocode example).

I believe that constant and value There is a difference between You can just use it:

  app.value ("myLabels", {});  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -