rappid/rAppid.js

Binding isn't evaluated if value is set before binding is initialized

it-ony opened this issue · 2 comments

The component live-cycle works like

  • Construct component
  • Construct children
  • Initialize Bindings

If a value for key has been set before the initialization, no Binding is created for the attribute key.

The same is true, if injection is used to fill the attribute key.

A solution would be

  • to extract all Binding values form the $ at a first point and
  • set the value to null
  • Use the extracted Bindings instead of the value from the $

resolved with #47