external configuration allows multiple custom configuration for the same source code. The downside is manual maintenance is needed. We will investigate a couple of ways to load external configuration, the pitfalls, and possible solutions. Let's begin by creating the config json file with some keys. The full project is on StackBlitz. Let’s add the http call to get the configuration file.

19m read timeFrom indepth.dev
Post cover image
Table of contents
Via Http and APP_INITIALIZER token Link to this sectionExternal configurations in Angular Universal Link to this sectionIsolating the server Link to this sectionInjecting a script Link to this sectionImplementing APP_INITIALIZER Link to this sectionImplementing PLATFORM_INITIALIZER Link to this sectionChallenges Link to this section

Sort: