This document describes the Config object in the JavaScript environment for app serivices.
| Object | Config |
| Functions |
onchanged save |
| Examples |
Reading config values Changing config values Get notified about config changes |
| function callback() | Called whenever the config has changed. |
| Config | A reference to the object itself. Useful for method chaining. |
| Config | A reference to the object itself. Useful for method chaining. |
var token = Config.token;
Config.token = "xxxx";
Config.save();
Config.onchanged(function() {
// config has changed, read new values
});