Skip to content

Commit c2fed3e

Browse files
#53 fix for older versions
1 parent af4e0e4 commit c2fed3e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

guides/v2.18.0/tutorial/model-hook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Here's what our homepage will look like when we're done:
1111
![super rentals homepage with rentals list](/images/model-hook/super-rentals-index-with-list.png)
1212

1313
In Ember, route handlers are responsible for loading the model with data for the page.
14-
It loads the data in a function called [`model`](https://www.emberjs.com/api/ember/2.16/classes/Route/methods/model?anchor=model).
14+
It loads the data in a function called [`model`](https://www.emberjs.com/api/ember/2.18/classes/Route/methods/model?anchor=model).
1515
The `model` function acts as a **hook**, meaning that Ember will call it for us during different times in our app.
1616
The model function we've added to our `rentals` route handler will be called when a user navigates to the rentals route via root URL `http://localhost:4200`, or via `http://localhost:4200/rentals`.
1717

@@ -64,7 +64,7 @@ We can use the model attribute to display our list of rentals.
6464
Here, we'll use another common Handlebars helper called [`{{each}}`](../../templates/displaying-a-list-of-items/).
6565
This helper will let us loop through each of the rental objects in our model:
6666

67-
```handlebars {data-filename="app/templates/rentals.hbs" data-diff="+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28,+29"}
67+
```handlebars {data-filename="app/templates/rentals.hbs" data-diff="+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28"}
6868
<div class="jumbo">
6969
<div class="right tomster"></div>
7070
<h2>Welcome!</h2>

guides/v3.0.0/tutorial/model-hook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Here's what our homepage will look like when we're done:
1111
![super rentals homepage with rentals list](/images/model-hook/super-rentals-index-with-list.png)
1212

1313
In Ember, route handlers are responsible for loading the model with data for the page.
14-
It loads the data in a function called [`model`](https://www.emberjs.com/api/ember/2.16/classes/Route/methods/model?anchor=model/).
14+
It loads the data in a function called [`model`](https://www.emberjs.com/api/ember/3.0/classes/Route/methods/model?anchor=model/).
1515
The `model` function acts as a **hook**, meaning that Ember will call it for us during different times in our app.
1616
The model function we've added to our `rentals` route handler will be called when a user navigates to the rentals route via root URL `http://localhost:4200`, or via `http://localhost:4200/rentals`.
1717

@@ -64,7 +64,7 @@ We can use the model attribute to display our list of rentals.
6464
Here, we'll use another common Handlebars helper called [`{{each}}`](../../templates/displaying-a-list-of-items/).
6565
This helper will let us loop through each of the rental objects in our model:
6666

67-
```handlebars {data-filename="app/templates/rentals.hbs" data-diff="+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28,+29"}
67+
```handlebars {data-filename="app/templates/rentals.hbs" data-diff="+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28"}
6868
<div class="jumbo">
6969
<div class="right tomster"></div>
7070
<h2>Welcome!</h2>

guides/v3.1.0/tutorial/model-hook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ We can use the model attribute to display our list of rentals.
6464
Here, we'll use another common Handlebars helper called [`{{each}}`](../../templates/displaying-a-list-of-items/).
6565
This helper will let us loop through each of the rental objects in our model:
6666

67-
```handlebars {data-filename="app/templates/rentals.hbs" data-diff="+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28,+29"}
67+
```handlebars {data-filename="app/templates/rentals.hbs" data-diff="+12,+13,+14,+15,+16,+17,+18,+19,+20,+21,+22,+23,+24,+25,+26,+27,+28"}
6868
<div class="jumbo">
6969
<div class="right tomster"></div>
7070
<h2>Welcome!</h2>

0 commit comments

Comments
 (0)