FuseConfigService is a singleton service to store and access an application wide configuration object. It can be used to store any kind of data and can be accessed from anywhere within your application.
By default, the application wide configuration is stored in src/app/core/config/app.config.ts
file and it includes the layout style as
well as the color theme configurations:
The default configuration is supplied to the FuseConfigService using the FuseConfigModule.forRoot()
in AppModule:
To set a configuration use config
setter on FuseConfigService. The setter will intelligently merge the configuration by replacing only
the given options if they exist while preserving others. If the supplied option does not exist on the configuration, it will be added:
To get the configuration use config$
getter on FuseConfigService which returns an Observable
of the configuration object: