Unless ENVIRONMENT_SOURCES is provided, the initial sources value is null. To know more about the environment sources and its factory read the source tokens documentation or the sources documentation.
Below are examples of the expected behavior and some implementation examples. To learn more about environment loader and how to create them you can read the documentation.
Angular Environment Loader
DefaultEnvironmentLoader
The default environment loader implementation to load the properties to the environment.
This loader is provided by defaut when running
EnvironmentModule.forRoot()
, but can be provided manually.Unless
ENVIRONMENT_SOURCES
is provided, the initial sources value isnull
. To know more about the environment sources and its factory read the source tokens documentation or the sources documentation.Use cases
Below are examples of the expected behavior and some implementation examples. To learn more about environment loader and how to create them you can read the documentation.
Table of Contents
Create a custom loader
To create a custom environment loader that uses
ENVIRONMENT_SOURCES_FACTORY
simply complete the next class.Once implemented must be provided:
EnvironmentModule.forRoot()
.