Skip to main content
Version: 2.x

Binding class

@microsoft/fast-element > Binding

Binding class

Captures a binding expression along with related information and capabilities.

Signature:

export declare abstract class Binding<TSource = any, TReturn = any, TParent = any> 

Constructors

Constructor

Modifiers

Description

(constructor)(evaluate, policy, isVolatile)

Creates a binding.

Properties

Property

Modifiers

Type

Description

evaluate

Expression<TSource, TReturn, TParent>

isVolatile

boolean

options?

any

(Optional) Options associated with the binding.

policy?

DOMPolicy | undefined

(Optional)

Methods

Method

Modifiers

Description

createObserver(subscriber, directive)

abstract

Creates an observer capable of notifying a subscriber when the output of a binding changes.