ref() function
ref() function
A directive that observes the updates a property with a reference to the element.
Signature:
ref: <TSource = any, TParent = any>(propertyName: keyof TSource & string) => CaptureType<TSource, TParent>
Parameters
Parameter | Type | Description |
|---|---|---|
propertyName | keyof TSource & string | The name of the property to assign the reference to. |
Returns:
CaptureType<TSource, TParent>