Using The: Configservice Configservice Configmodule Isglobal Configmodule - Forroot True
The ConfigService allows accessing configuration values by injecting the ConfigService. The ConfigModule containing the ConfigService must be imported into any module using it, unless isGlobal is set to true when calling ConfigModule.forRoot(). The ConfigModule should be imported into a feature module to use the ConfigService.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
39 views1 page
Using The: Configservice Configservice Configmodule Isglobal Configmodule - Forroot True
The ConfigService allows accessing configuration values by injecting the ConfigService. The ConfigModule containing the ConfigService must be imported into any module using it, unless isGlobal is set to true when calling ConfigModule.forRoot(). The ConfigModule should be imported into a feature module to use the ConfigService.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Using the ConfigService#
To access configuration values from our ConfigService, we first need to
inject ConfigService. As with any provider, we need to import its containing module - the ConfigModule - into the module that will use it (unless you set the isGlobal property in the options object passed to the ConfigModule.forRoot() method to true). Import it into a feature module as shown below.