• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • svelte-ast-print
  • svelte-ast-print/template
  • printBindDirective

Function printBindDirective

  • printBindDirective(
        n: BindDirective,
        opts?: Partial<PrintOptions>,
    ): Result<BindDirective>

    Parameters

    • n: BindDirective
    • opts: Partial<PrintOptions> = {}

    Returns Result<BindDirective>

    See

    https://svelte.dev/docs/svelte/bind

    Example: with expression

    bind:name={variable}
    

    Example: shorthand - when variable - expression as identifier - name is same

    bind:name
    

    Since

    1.0.0 @NO_SIDE_EFFECTS

    • Defined in pkgs/svelte-ast-print/src/template/mod.ts:282

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc