@@ -31,7 +31,7 @@ you will have access to a new `ember` command in your terminal.
31
31
You can use the ` ember new ` command to create a new application.
32
32
33
33
``` bash
34
- ember new ember-quickstart --lang en
34
+ ember new ember-quickstart --lang en --strict
35
35
```
36
36
37
37
This one command will create a new directory called ` ember-quickstart ` and set up a new Ember application inside of it.
@@ -119,8 +119,6 @@ ember generate route scientists
119
119
You'll see output like this:
120
120
121
121
``` bash
122
- # 🚧 Under construction 🚧
123
- # `ember generate route` has not been updated to produce GJS files yet.
124
122
installing route
125
123
create app/routes/scientists.js
126
124
create app/templates/scientists.gjs
@@ -137,7 +135,7 @@ That is Ember telling you that it has created:
137
135
3 . An entry in the application's router (located in ` app/router.js ` ).
138
136
4 . A unit test for this route.
139
137
140
- Open the newly-created template in ` app/templates/scientists.gjs ` and add the following HTML :
138
+ Open the newly-created template in ` app/templates/scientists.gjs ` and add the following code :
141
139
142
140
``` gjs {data-filename=app/templates/scientists.gjs}
143
141
import { pageTitle } from 'ember-page-title';
@@ -216,11 +214,24 @@ As usual, there's a generator that makes this easy for us.
216
214
Make a new component by typing:
217
215
218
216
``` bash
219
- # 🚧 Under construction 🚧
220
- # `ember generate component` has not been updated to produce GJS files yet.
217
+ ember generate component people-list
221
218
```
222
219
223
- Copy and paste this part of the ` scientists ` template into the ` PeopleList ` component and edit it to look as follows:
220
+ You'll see output like this:
221
+
222
+ ``` bash
223
+ installing component
224
+ create app/components/people-list.gjs
225
+ installing component-test
226
+ create tests/integration/components/people-list-test.gjs
227
+ ```
228
+
229
+ That is Ember telling you that it has created:
230
+
231
+ 1 . A ` people-list ` component in the ` components ` folder
232
+ 2 . A ` people-list-test ` integration test file that you can use to test your component
233
+
234
+ Copy and paste this part of the ` scientists ` template into the newly created ` PeopleList ` component and edit it to look as follows:
224
235
225
236
``` gjs {data-filename=app/components/people-list.gjs}
226
237
<template>
0 commit comments