Applying Angular Runtime Configurations in Dockerized Environments

Written by jfs | Published 2020/02/18
Tech Story Tags: angular | kubernetes | docker | environment-variables | programming | software-development | javascript | docker-compose

TLDR With the shift to Cloud-first and the rise of managed infrastructure and orchestrations such as EWS, Azure AKS or GCP clusters the application landscape needs to prepare and adjust itself to match newly rising requirements. The downside of the Angular concept is, that it is a build-time configuration only. This can be achieved by getting rid of the default concept of environments using a Ajax/XHR call to retrieve the configuration dynamically instead. We implement a config service, which is instantiated on the start of the application using the appResolver fetching the config via an XHR call.via the TL;DR App

no story

Published by HackerNoon on 2020/02/18