Parameters
Class: Parameters
Defined in: packages/core/src/application/parameters.ts:7
Typed configuration parameters shared by services, models and behaviors
Extended by
Constructors
Constructor
new Parameters():
Parameters
Returns
Parameters
Methods
load()
load(
params?):this
Defined in: packages/core/src/application/parameters.ts:22
Load raw parameters by assigning them onto this instance
Parameters
params?
any = {}
the service parameters
Returns
this
this for chaining
update()
update(
params?,delta):this
Defined in: packages/core/src/application/parameters.ts:33
Update parameters and call watchers if a parameter was changed
Parameters
params?
any = {}
the service parameters
delta
any
the delta
Returns
this
this for chaining
with()
with(
callback):this
Defined in: packages/core/src/application/parameters.ts:63
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining