Skip to content

APP_INITIALIZER alternative #1

Description

@ccadieux

We had similar requirements.

  • Devops wanted a per environment config.
  • Build once for all environments.
  • Prevent people checking in passwords and secrets.

We ended up using APP_INITIALIZER to load a json file with our configuration.
Here's a minimal example: https://embed.plnkr.co/295SxTOZEZUbiyrhAKh2/

Some other links
angular/angular#9047
https://stackoverflow.com/questions/39033835/angularjs2-preload-server-configuration-before-the-application-starts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions