@@ -32,7 +32,7 @@ component, we can pass a `@content` argument to it like so:
32
32
33
33
And then we can access it in the template for the ` Tooltip ` component like this:
34
34
35
- ``` handlebars {data-filename=src/ui /components/tooltip/template .hbs}
35
+ ``` handlebars {data-filename=app/templates /components/tooltip.hbs}
36
36
{{@content}}
37
37
```
38
38
@@ -41,7 +41,7 @@ an argument coming from the caller whenever you're looking at the template. In
41
41
the component class you can access the arguments on the ` args ` property of the
42
42
class, since ` @ ` is special character in JavaScript reserved for decorators:
43
43
44
- ``` js {data-filename=src/ui/ components/tooltip/component .js}
44
+ ``` js {data-filename=app/ components/tooltip.js}
45
45
export default class Tooltip extends Component {
46
46
get upperCased () {
47
47
return this .args .content .toUpperCase ();
@@ -112,7 +112,7 @@ provided.
112
112
For instance, if you wanted to create a tooltip icon that had a standard icon
113
113
and class, you could do it like so:
114
114
115
- ``` javascript {data-filename=src/ui/ components/tooltip/component .js}
115
+ ``` javascript {data-filename=app/ components/tooltip.js}
116
116
import Component from ' @glimmer/component' ;
117
117
118
118
export default class Tooltip extends Component {
@@ -126,7 +126,7 @@ export default class Tooltip extends Component {
126
126
}
127
127
```
128
128
129
- ``` handlebars {data-filename=src/ui /components/tooltip/template .hbs}
129
+ ``` handlebars {data-filename=app/templates /components/tooltip.hbs}
130
130
<div class="{{this.tooltipClass}}">
131
131
<i class="{{this.icon}}"></i>
132
132
{{@content}}
@@ -167,7 +167,7 @@ customization logic to every single component.
167
167
For instance, in our ` <Tooltip> ` component from above, instead of adding the
168
168
` @tooltipClass ` argument, we could use attributes:
169
169
170
- ``` handlebars {data-filename=src/ui /components/tooltip/template .hbs}
170
+ ``` handlebars {data-filename=app/templates /components/tooltip.hbs}
171
171
<div class="tooltip" ...attributes>
172
172
<i class="{{this.icon}}"></i>
173
173
{{@content}}
@@ -224,6 +224,7 @@ can be overriden, but attributes that come _after_ cannot:
224
224
...attributes
225
225
data-non-overridable="but you can't override me!"
226
226
>
227
+ ...
227
228
</p>
228
229
```
229
230
0 commit comments