$a.config

📘 Contains methods for config services data manipulation:

add

add(exp: string, value?)

Sets config service data.

Example

this.$a.config.add("MySettings2.id", 123);

all

all(): any

Returns all settings data in an object.

Example

let allSettings = this.$a.config.all();

get

get(settingsServiceName: string, defaultValue?): any

Gets data from the Settings service. If the data is not found then the default value is returned.

Example

let id = this.$a.config.get("MySettings.id", -1);

remove

remove(exp: string)

Removes data from the Settings service.

Example

this.$a.config.remove("MySettings.id");