Skip to main content

@microsoft/fast-element > attr

attr() function

Decorator: Specifies an HTML attribute.

Signature:
export declare function attr(target: {}, prop: string): void;

Parameters

ParameterTypeDescription
target{}The class to define the attribute on.
propstringThe property name to be associated with the attribute.
Returns:

void