Skip to content

How to migrate to 2.0.0

Romain Lebesle edited this page Dec 11, 2024 · 2 revisions
  • parentNode becomes target
  • Binding.identifier removed
  • onRendered rename to OnConnected
  • Nesting model inside a ModelDefinition is now done through the childModel property:
{
  "childModel": {
    "model": MyModel
    //...
  }
}
  • identifiers returns the following object { model: Model, binding: Binding, element: Element } , to access its root element you can also use Binding.elements.
  • DocumentFragment API (when tagName is omitted) removed
Clone this wiki locally