@microsoft/fast-element > html
html() function
Transforms a template literal string into a renderable ViewTemplate.
Signature:export declare function html<TSource = any, TParent = any>(strings: TemplateStringsArray, ...values: TemplateValue<TSource, TParent>[]): ViewTemplate<TSource, TParent>;
Parameters
Parameter | Type | Description |
---|---|---|
strings | TemplateStringsArray | The string fragments that are interpolated with the values. |
values | TemplateValue<TSource, TParent>[] | The values that are interpolated with the string fragments. |
ViewTemplate<TSource, TParent>
Remarks
The html helper supports interpolation of strings, numbers, binding expressions, other template instances, and Directive instances.