This is a prerelease version of FAST (3.0.0-rc.3).

@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>

Evaluates the binding.

isVolatile

boolean

Indicates whether the binding is volatile.

options?

any

(Optional) Options associated with the binding.

policy?

DOMPolicy

(Optional) The security policy to associate with this binding.

Methods

Method

Modifiers

Description

createObserver(subscriber, directive)

abstract

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