Skip to main content
Version: 2.x

ExpressionController interface

@microsoft/fast-element > ExpressionController

ExpressionController interface

Controls the lifecycle of an expression and provides relevant context.

Signature:

export interface ExpressionController<TSource = any, TParent = any> 

Properties

Property

Modifiers

Type

Description

context

readonly

ExecutionContext<TParent>

The context the expression is evaluated against.

isBound

readonly

boolean

Indicates whether the controller is bound.

source

readonly

TSource

The source the expression is evaluated against.

sourceLifetime?

readonly

SourceLifetime

(Optional) Indicates how the source's lifetime relates to the controller's lifetime.

Methods

Method

Description

onUnbind(behavior)

Registers an unbind handler with the controller.