Skip to content

Commit

Permalink
Merge pull request #395 from Caltor/patch-1
Browse files Browse the repository at this point in the history
docs: improve `closure-action` rule examples
  • Loading branch information
bmish committed Mar 14, 2019
2 parents aae8bc7 + 3590f88 commit 88cbd4f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/rules/closure-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ export default Controller.extend({
});
```

### GOOD
```hbs
{{! GOOD }}
{{pretty-component boom=(action 'detonate')}}
```

```javascript
// pretty-component.js
export default Component.extend({
actions: {
pushLever() {
Expand All @@ -28,11 +30,13 @@ export default Component.extend({
})
```

### BAD
```hbs
{{! BAD }}
{{awful-component detonate='detonate'}}
```

```javascript
// awful-component.js
export default Component.extend({
actions: {
pushLever() {
Expand Down

0 comments on commit 88cbd4f

Please sign in to comment.