Context
Context is passed to all components.
Static Method Summary
Static Public Methods | ||
public static |
create Context of state, transform is identity |
Constructor Summary
Public Constructor | ||
public |
constructor(instance: Object) Context constructors |
Method Summary
Public Methods | ||
public |
check if ctx has changed |
|
public |
get(path: string | JSONPointer, toJS: boolean): any get value from state |
|
public |
update(patchSet: *): * |
Static Public Methods
Public Constructors
Public Methods
public changed(last: Context): boolean source
check if ctx has changed
Params:
Name | Type | Attribute | Description |
last | Context | the last COntext |
public get(path: string | JSONPointer, toJS: boolean): any source
get value from state
Params:
Name | Type | Attribute | Description |
path | string | JSONPointer | = '' - pointer to value |
|
toJS | boolean | = false - unbox value? |
Return:
any | value |