$observable
#
ParametersCreates an Accent observable from a given object.
Parameter | Type | Description |
---|---|---|
value | Object | The object to create an observable from. |
#
ExampleCreating an observable from the object { name: 'foo', description: 'bar' }
let obj = Accent.$observable({ name: "foo", description: "bar",});
This returns a Proxy
object, from which you can modify and read members of the observable and use observable-specific functionality.