Skip to content

Commit

Permalink
[DOC LTS] Update documentation for sendAction deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
locks committed Jan 14, 2019
1 parent db1e692 commit a968069
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@ember/-internals/glimmer/lib/helpers/action.ts
Expand Up @@ -92,12 +92,15 @@ import { ACTION, INVOKE, UnboundReference } from '../utils/references';
additional arguments are passed to the action function. This has interesting
properties combined with currying of arguments. For example:
```app/templates/components/my-component.hbs
{{input on-input=(action (action 'setName' model) value="target.value")}}
```
```app/components/my-component.js
import Component from '@ember/component';
export default Component.extend({
actions: {
// Usage {{input on-input=(action (action 'setName' model) value="target.value")}}
setName(model, name) {
model.set('name', name);
}
Expand Down

0 comments on commit a968069

Please sign in to comment.