Dynamic application configuration in Angular

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments

How do you hold API endpoint URLs in your Angular application? How do you hold other things which might be changed at any point in time? What if you have multiple clients for the same application and they all need very specific application configurations? Do you build the application multiple times, once for each client? Or… do you put all of this into a configuration file which gets loaded on application startup? We do the latter.

(more…)

Continue Reading Dynamic application configuration in Angular

Inject application build timestamp in Angular

  • Post author:
  • Post category:Blog
  • Post comments:0 Comments

In the following scenario, we will explore how to inject the build timestamp into our application environment file. After doing that, we can access this info anywhere inside the application. Build timestamp can prove useful when we have some kind of “About application” info page.

(more…)

Continue Reading Inject application build timestamp in Angular