Skip to content

Commit 0413087

Browse files
committed
Proofread Example
1 parent 1c2e8a9 commit 0413087

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ The addon provides `model` that is scoped to the `head` template. The `model` is
6060
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.
6161

6262

63-
### Example
63+
## Example
6464

65-
#### Setting content data in route
65+
### Setting content data in route
6666

6767
```javascript
6868
// app/routes/application.js
@@ -79,13 +79,17 @@ export default class ApplicationRoute extends Route {
7979
}
8080
```
8181

82-
#### Using the service as model in head.hbs
82+
83+
### Using the service in head template
8384

8485
```handlebars
86+
{{!-- app/templates/head.hbs --}}
87+
8588
<meta property="og:title" content={{this.model.title}} />
8689
```
8790

88-
#### Resulting head
91+
92+
### Checking head tag
8993

9094
This will result in a document along the lines of:
9195

@@ -103,6 +107,7 @@ This will result in a document along the lines of:
103107
</html>
104108
```
105109

110+
106111
### Fastboot Only
107112

108113
The primary need for this library is to support various bots and web crawlers. To that end the head content is only truly needed in a server rendered (i.e. FastBoot) environment. However, by default the library will keep the head content in sync with any transitions/data changes that occur in your Ember App while running in the browser. This can be useful for development and/or debugging.

0 commit comments

Comments
 (0)