Dynamic application configuration in Angular

  • Beitrags-Autor:
  • Beitrags-Kategorie:Blog
  • Beitrags-Kommentare:0 Kommentare

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.

(mehr …)

Weiterlesen Dynamic application configuration in Angular

Inject application build timestamp in Angular

  • Beitrags-Autor:
  • Beitrags-Kategorie:Blog
  • Beitrags-Kommentare:0 Kommentare

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.

(mehr …)

Weiterlesen Inject application build timestamp in Angular