Binding.observe()
Creates a new binding that references a property of the provided object.
static observe<TObject extends ObservableObject, K extends keyof TObject>(
object: TObject,
propertyName: K,
): Binding<TObject[K]>;
Notes
- If the property doesn’t exist yet, it will be initialized as undefined.
Parameters
- object — The object to bind to
- propertyName — The name of the property to observe
Return value
A new Binding object
Related
class Binding
A class that represents a property binding.
