You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -265,7 +265,9 @@ The development server has a feature called *live reload*, which monitors your a
265
265
As text on the welcome page pointed out, the source code for the page is located in `app/templates/application.hbs`. Let's try to edit that file and replace it with our own content:
<!-- end patch for https://github.com/emberjs/ember.js/issues/19333 -->
67
+
48
68
Generators aren't required; we *could* have created the file ourselves which would have accomplished the exact same thing. But, generators certainly save us a lot of typing. Go ahead and take a peek at the acceptance test file and see for yourself.
49
69
50
70
> Zoey says...
@@ -65,11 +85,11 @@ Let's open the generated test file and replace the boilerplate test with our own
<!-- end patch for https://github.com/emberjs/ember.js/issues/19333 -->
178
+
156
179
Here, we used the generator to generate a *[component test](../../../testing/testing-components/)*, also known as a rendering test. These are used to render and test a single component at a time. This is in contrast to the acceptance tests that we wrote earlier, which have to navigate and render entire pages worth of content.
157
180
158
181
Let's replace the boilerplate code that was generated for us with our own test:
<!-- end patch for https://github.com/emberjs/ember.js/issues/19333 -->
56
+
34
57
We will start by editing the template. Let's *[hard-code](https://en.wikipedia.org/wiki/Hard_coding)* the details for one rental property for now, and replace it with the real data from the server later on.
<!-- end patch for https://github.com/emberjs/ember.js/issues/19333 -->
195
+
196
+
150
197
Components like these are known as *[namespaced](https://en.wikipedia.org/wiki/Namespace)* components. Namespacing allows us to organize our components by folders according to their purpose. This is completely optional—namespaced components are not special in any way.
151
198
152
199
## Forwarding HTML Attributes with `...attributes`
@@ -188,11 +235,11 @@ In general, it is a good idea to add `...attributes` to the primary element in y
0 commit comments