Skip to content

Commit ab150d3

Browse files
authored
Update writing-helpers.md
Remove outdated text Update links & references to API docs (there's probably more to do)
1 parent 0a2dc07 commit ab150d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

guides/release/templates/writing-helpers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ You can also have Ember generate the file for you from the command line:
3737
ember generate helper format-currency
3838
```
3939

40-
That file should export a function wrapped with [`Ember.Helper.helper()`](https://emberjs.com/api/ember/2.15/classes/Ember.Helper/methods/helper?anchor=helper):
40+
That file should export a function wrapped with [`helper()`](https://api.emberjs.com/ember/release/functions/@ember%2Fcomponent%2Fhelper/helper):
4141

4242
```javascript {data-filename=app/helpers/format-currency.js}
4343
import { helper } from '@ember/component/helper';
@@ -79,7 +79,7 @@ helper again with the new values and keep the page up-to-date.
7979

8080
### Helper Names
8181

82-
Unlike [components](../../components/defining-a-component/), which require a dash in the name to follow the Custom Element spec, helper names can be single or multi-word. If your helper's name is multi-word, it should be dasherized as the examples on this page.
82+
Helper names can be single or multi-word. If your helper's name is multi-word, it should be dasherized as the examples on this page.
8383

8484
### Helper Arguments
8585

@@ -249,9 +249,9 @@ access to services in your application, and can optionally save state as well,
249249
although this is usually unnecessary and error-prone.
250250

251251
To create a class-based helper, rather than exporting a simple function, you
252-
should export a subclass of [`Ember.Helper`][1]. Helper classes must contain a
252+
should export a subclass of [`Helper`][1]. Helper classes must contain a
253253
[`compute`][2] method that behaves the same as the function passed to
254-
[`Ember.Helper.helper`][3]. In order to access a service, you must first inject it
254+
[`helper`][3]. In order to access a service, you must first inject it
255255
into the class-based helper. Once added, you can call the service's methods or
256256
access its properties from within the `compute()` method.
257257

@@ -396,5 +396,5 @@ type="javascript"&gt;alert('pwned!');&lt;/script&gt;</b> has joined the channel.
396396
```
397397
[1]: https://www.emberjs.com/api/ember/release/classes/Helper
398398
[2]: https://www.emberjs.com/api/ember/release/classes/Helper/methods/compute?anchor=compute
399-
[3]: https://www.emberjs.com/api/ember/release/classes/Helper/methods/compute?anchor=helper
399+
[3]: https://api.emberjs.com/ember/release/functions/@ember%2Fcomponent%2Fhelper/helper
400400
[4]: https://www.emberjs.com/api/ember/release/functions/@ember%2Ftemplate/htmlSafe

0 commit comments

Comments
 (0)