Configuration
Some times apps may need to have custom configurations for different projects. For example, a Hello World app may have the option to have a customizable hello message.
Usage
App configurations can be added to the config
object int bluerain.js
file. Continueing on our "Hello World" app example, this is what it's custom configurations will look like:
To find out what configurations an app needs, please refer to the app documentation.
Accessing configurations inside App
The app specific configurations are passed to the initialize method of the app class at system boot time.
Accessing App Configs via Context
App configs can also be accessed anywhere in the project through BlueRain context:
Last updated