Skip to content

Commit 1c2e8a9

Browse files
committed
Proofread Usage
1 parent 034adf5 commit 1c2e8a9

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,25 @@ Take into account that version >= 0.3 of this addon require Ember 2.10+ and fast
4040

4141
## Usage
4242

43-
#### Template
43+
### Head template
4444

45-
By installing this addon you will find a new template added to your
46-
app:
45+
By installing this addon, you will find a new template added to your app, called `head`:
4746

4847
```
4948
app/templates/head.hbs
5049
```
5150

52-
The contents of this template will be inserted into the `<head>`
53-
element of the page.
51+
The contents of this template will be inserted into the `<head>` element of the page.
5452

5553

56-
#### Service
54+
### Head data service
5755

58-
There will be a `model` in the rendering scope of this template. This
59-
model is actually an alias for the `head-data` service. You can set
60-
whatever data you want to be available in the template directly on
61-
that service.
56+
The addon provides `model` that is scoped to the `head` template. The `model` is actually an alias of the `head-data` service. You can set whatever data you want to be available to the `head` template on this service.
6257

63-
⚠️ Warning for Octane apps:
58+
⚠️ Warning for Octane apps
59+
60+
Because `model` refers to the `head-data` service (and not what a route's `model` hook returns), it is important to use `this.model` (not `@model`) in the `head` template.
6461

65-
Because `model` refers to the `head-data` service (and not what a route's `model` hook returns), it is important to use `this.model` (not `@model`) in `app/templates/head.hbs`.
6662

6763
### Example
6864

0 commit comments

Comments
 (0)