Releases: Serabe/ember-bind-helper
v1.0.0 Static line
Sandcastles in the Sand
Our beloved bind
helper now supports named arguments with Sparkles Components. That's the only difference. Thanks to @gossi for the report.
Internally, Ember CLI has been updated to ~3.5 and tests has been updated (mainly because I could not remember how to write tests in that format).
https://www.youtube.com/watch?v=mCAiBmA_bK8
Why the rapid patch version?
Because I hadn't taken my coffee and was releasing 0.2.0 all over again. Twice.
Remember to take your first coffee before publishing to npm, children.
Abuelo cebolleta out.
Reborn
This release changes the API completely and improves it thanks to the work of @mmun and @rwjblue.
Previous API accepted two positional parameters: the method and the context.
Current API is much more concise in the general case, while still allowing for selecting a totally custom target.
Now, {{bind model.submodel.method}}
will automatically detect model.submodel
as the target. In case you want a custom target, just pass it as a named parameter: {{bind model.submodel.method target=otherModel}}
.
Beware that if the passed function path is similar to model.actions.method
, the target will be just model
and not model.actions
.
Another improvement is that it now accepts extra positional parameters that will be passed to Ember.run.bind
.