Skip to main content

@microsoft/fast-element > ref

ref() function

A directive that observes the updates a property with a reference to the element.

Signature:
export declare function ref<T = any>(propertyName: keyof T & string): CaptureType<T>;

Parameters

ParameterTypeDescription
propertyNamekeyof T & stringThe name of the property to assign the reference to.
Returns:

CaptureType<T>