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

@microsoft/fast-element > ViewController

ViewController interface

Controls the lifecycle of a view and provides relevant context.

Signature:

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

Extends: ExpressionController<TSource, TParent>

Properties

Property

Modifiers

Type

Description

isHydrated?

readonly

Promise<boolean>

(Optional) Resolves true after prerendered content has been hydrated, false when client-side rendered or hydration not enabled.

isPrerendered?

readonly

Promise<boolean>

(Optional) Resolves true when the view's host element had prerendered content (existing shadow root).

targets

readonly

ViewBehaviorTargets

The parts of the view that are targeted by view behaviors.