TitanNanoDE / af-DataBinding

HTML data binding library
Apache License 2.0
1 stars 0 forks source link

advance the attribute parser #9

Closed TitanNano closed 7 years ago

TitanNano commented 7 years ago

The attribute parser should be improved to be able to understand binding names like this: bind-event(). This binding name should translate to any binding like this: bind-event(click)="view.onClick" while the new parameter in the parentheses will be passed into the bindings constructor() method along with the other parameters.

TitanNano commented 7 years ago

The binding name doesn't need to include the parentheses. bind-event maps bind-event(...) and bind-event. The parameter attribute will hand the text inside the parentheses to the binding constructor.