Binding.createObserver() method
@microsoft/fast-element > Binding > createObserver
Binding.createObserver() method
Creates an observer capable of notifying a subscriber when the output of a binding changes.
Signature:
abstract createObserver(subscriber: Subscriber, directive: BindingDirective): ExpressionObserver<TSource, TReturn, TParent>;
Parameters
Parameter | Type | Description |
---|---|---|
subscriber | The subscriber to changes in the binding. | |
directive | The Binding directive to create the observer for. |
Returns:
ExpressionObserver<TSource, TReturn, TParent>