Skip to main content
Version: 2.x

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

Subscriber

The subscriber to changes in the binding.

directive

BindingDirective

The Binding directive to create the observer for.

Returns:

ExpressionObserver<TSource, TReturn, TParent>