Skip to content

better events (view to model) binding API #60

Closed
@gullerya

Description

@gullerya

As of now, the way that consumer declares the event that should be listened to in order to track the model from view is not sufficient:

  • it is defined on component instead of declaratively in HTML as the rest of the bindings
  • it is a single one for a component, so there is no possibility to set, say 2 listeners for 2 events for different properties

I'd like to explore/propose this API instead:
<time-form data-tie="tie:time => time => timechange, tie:date => date => datechange"></time-form>

In essence: the M => V vector can optionally be enhanced/continued by the V => M' vector, where the would be the name of event.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions