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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -