Home Reference Source Repository
public class | source

UserSettings

Service handeling user settings

Constructor Summary

Public Constructor
public

constructor($q: *, $rootScope: *, DataService: *)

Member Summary

Public Members
public

$q: *

public
public
public
public

Method Summary

Public Methods
public

Read the settings from the file and update the cache

public

mergeSettings(settings: *): *

Merge the settings to settings.json

public

saveSettings(newSettings: *): *

Public Constructors

public constructor($q: *, $rootScope: *, DataService: *) source

Params:

NameTypeAttributeDescription
$q *
$rootScope *
DataService *

Public Members

public $q: * source

public $rootScope: * source

public cachedSettings: * source

public dataService: * source

public firstRun: boolean source

Public Methods

public getSettings(): * source

Read the settings from the file and update the cache

Return:

*

public mergeSettings(settings: *): * source

Merge the settings to settings.json

Params:

NameTypeAttributeDescription
settings *

Return:

*

public saveSettings(newSettings: *): * source

Params:

NameTypeAttributeDescription
newSettings *

Return:

*