Skip to content

Commit

Permalink
Fixed a typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlee2 committed Apr 8, 2024
1 parent 91131b6 commit 87b4a6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ ember install ember-render-helpers
}
```

- In a `<template>` tag, use the named import to consume the `{{local}}` helper.
- In a `<template>` tag, use the named import to consume the helpers.

```ts
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { didInsertHelper } from 'ember-render-helpers';
export default class HelloComponent extends Component {
sayHello() {
@action sayHello() {
console.log('Hello!');
}
Expand Down
5 changes: 3 additions & 2 deletions ember-render-helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ ember install ember-render-helpers
}
```

- In a `<template>` tag, use the named import to consume the `{{local}}` helper.
- In a `<template>` tag, use the named import to consume the helpers.

```ts
import { action } from '@ember/object';
import Component from '@glimmer/component';
import { didInsertHelper } from 'ember-render-helpers';
export default class HelloComponent extends Component {
sayHello() {
@action sayHello() {
console.log('Hello!');
}
Expand Down

0 comments on commit 87b4a6b

Please sign in to comment.