BindingWatcher Class
Represents an watched binding point for changes/invocations
Returned from the Bindings#watch method.
class BindingWatcher extends EventEmitter<any> {
get bindablePoint(): BindingPoint;
get value(): Object;
unwatch(): void;
}
#Properties
#bindablePoint
Returns the binding point being listened to
get bindablePoint(): BindingPoint;
#value
Returns the last received value for the source binding point
get value(): Object;
#Methods
#unwatch()
Stops monitoring this binding source
unwatch(): void;
#Events
#'invoked' Event
Fired when the source binding point is triggered
bindingWatcher.on('invoked', (value: Object, source: BindingWatcher) => { });
-
valueThe value supplied from the source binding -
sourceThis object