Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TemplateProcessor

Hierarchy

  • TemplateProcessor

Implemented by

Index

Methods

handleAttributeExpressions

  • handleAttributeExpressions(element: Element, name: string, strings: ReadonlyArray<string>, options: RenderOptions): ReadonlyArray<Part>
  • Create parts for an attribute-position binding, given the element, attribute name, and string literals.

    Parameters

    • element: Element

      The element containing the binding

    • name: string

      The attribute name, including a possible prefix. The name may be prefixed by . (for a property binding), @ (for an event binding) or ? (for a boolean attribute binding).

    • strings: ReadonlyArray<string>

      The array of literal strings that form the static part of the attribute value. There are always at least two strings, even for fully-controlled bindings with a single expression. For example, for the binding attr="${e1}-${e2}", the strings array includes three strings (['', '-', ''])—the text before the first expression (the empty string), the text between the two expressions ('-'), and the text after the last expression (another empty string).

    • options: RenderOptions

    Returns ReadonlyArray<Part>

handleTextExpression

Generated using TypeDoc