# Compile-time vs. Runtime configuration of your Angular App

DevFeed: [Compile-time vs. Runtime configuration of your Angular App](<https://devfeed.tech/articles/compile-time-vs-runtime-configuration-of-your-angular-app-21324.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2018/01/ng-app-runtime-config/>)

Published: 2018-01-21T00:00:00Z

Content type: article

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Angular CLI](<https://devfeed.tech/topics/angular-cli.md>), [app startup](<https://devfeed.tech/topics/app-startup.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [compile](<https://devfeed.tech/tags/compile.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [vs](<https://devfeed.tech/tags/vs.md>)

## AI overview

Angular compile-time configuration bundles environment-specific settings into the app. With Angular CLI, add properties to environment files, import the generic environment object, and configure CLI build options to select variants such as staging; the built-in production build uses production settings by default and enables AOT compilation. Runtime configuration suits settings that must change independently of the build or come from an API: deploy a JSON settings file and load it over HTTP when the app runs. The excerpt says the app should wait until settings are loaded and applied, but cuts off before showing a complete implementation.

## Source excerpt

Lorem ipsum dolor sit amet