Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Binding

The binder is used to actually bind an elements property to a scope. It's required if you implement your own binders.

Hierarchy

  • Binding

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • The binder assignment that connects viewmodel properties to element attributes.

    Parameters

    • modelProperty: string

      The property of the viewmodel this binder binds to

    • handler: string

      The handler that handles the binding. For attribute binders this is 'default' DefaultBindingHandler

    • binderInstance: ModelBinder<any>

      The binder instance that provides access to the actual binder objects

    • el: HTMLElement

      The element that the binder will assign the viewmodel to

    Returns Binding

Properties

Protected binderInstance

binderInstance: ModelBinder<any>

The binder instance that provides access to the actual binder objects

el

The element that the binder will assign the viewmodel to

Protected handler

handler: string

The handler that handles the binding. For attribute binders this is 'default' DefaultBindingHandler

Protected modelProperty

modelProperty: string

The property of the viewmodel this binder binds to

Accessors

value

  • get value(): any
  • set value(value: any): void

Methods

bind

  • bind(property?: string): void

Generated using TypeDoc