@microsoft/fast-element > CompilationResult

CompilationResult interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The result of compiling a template and its directives.

Signature:
export interface CompilationResult

Properties

PropertyTypeDescription
fragmentDocumentFragment(BETA) A cloneable DocumentFragment representing the compiled HTML.
hostBehaviorFactoriesBehaviorFactory[](BETA) The behaviors that should be applied to the host element that the template is rendered into.
targetOffsetnumber(BETA) An index offset to apply to BehaviorFactory target indexes when matching factories to targets.
viewBehaviorFactoriesBehaviorFactory[](BETA) The behaviors that should be applied to the template's HTML.