@microsoft/fast-element > ViewTemplate > (constructor)
ViewTemplate.(constructor)
Creates an instance of ViewTemplate.
Signature:constructor(html: string | HTMLTemplateElement, directives: ReadonlyArray<HTMLDirective>);
Parameters
| Parameter | Type | Description |
|---|---|---|
| html | string | HTMLTemplateElement | The html representing what this template will instantiate, including placeholders for directives. |
| directives | ReadonlyArray<HTMLDirective> | The directives that will be connected to placeholders in the html. |