Skip to content

Commit fb89142

Browse files
committed
Updates tutorials file extensions from .hbs to .gjs
1 parent 0bb1d5e commit fb89142

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/markdown/tutorial/part-1/08-working-with-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ Awesome! Now we're in business.
347347
348348
## Loops and Local Variables in Templates with `{{#each}}`
349349
350-
The last change we'll need to make is to our `index.hbs` route template, where we invoke our `<Rental>` components. Previously, we were passing in `@rental` as `@model` to our components. However, `@model` is no longer a single object, but rather, an array! So, we'll need to change this template to account for that.
350+
The last change we'll need to make is to our `index.gjs` route template, where we invoke our `<Rental>` components. Previously, we were passing in `@rental` as `@model` to our components. However, `@model` is no longer a single object, but rather, an array! So, we'll need to change this template to account for that.
351351
352352
Let's see how.
353353

src/markdown/tutorial/part-2/12-provider-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
npm start
55
```
66

7-
In this chapter, we'll work on adding a new search feature, and refactor our `index.hbs` template into a new component along the way. We'll learn about a new pattern for passing data around between components, too! Once we're done, our page will look like this:
7+
In this chapter, we'll work on adding a new search feature, and refactor our `index.gjs` template into a new component along the way. We'll learn about a new pattern for passing data around between components, too! Once we're done, our page will look like this:
88

99
<!-- TODO: make this a gif instead -->
1010

@@ -54,7 +54,7 @@ Awesome, one step done. Now, this input looks great, but it doesn't actually *do
5454

5555
In order to make our search box actually work, we are going to need to retain and store the text that the user types in when they use the search box. This text is the search query, and it is a piece of *[state](../../../components/component-state-and-actions/)* that is going to change whenever the user types something into the search box.
5656

57-
But where are we going to put this newly-introduced piece of state? In order to wire up the search box, we need a place to store the search query. At the moment, our search box lives on the `index.hbs` route template, which doesn't have a good place to store this search query state. Darn, this would be so much easier to do if we had a component, because we could just store the state directly on the component!
57+
But where are we going to put this newly-introduced piece of state? In order to wire up the search box, we need a place to store the search query. At the moment, our search box lives on the `index.gjs` route template, which doesn't have a good place to store this search query state. Darn, this would be so much easier to do if we had a component, because we could just store the state directly on the component!
5858

5959
Wait...why don't we just refactor the search box into a component? Once we do that, this will all be a bit easier&mdash;hooray!
6060

0 commit comments

Comments
 (0)