This addon provides a bind
helper to bind a function to a context.
ember install ember-bind-helper
Let's say we want to call a method of an object when we click a function. We might think of doing the following:
Sadly, this might not work as expected, given that the context would be the
controller
(twiddle).
To solve this, you can use the bind
helper: