Skip to content

Commit 1fe859f

Browse files
authored
fix button component code in tutorial
This code doesn't work unless @ is added<button>{{buttonLabel}}</button>, so fix would be <button>{{@ButtonLabel}}</button>.
1 parent f5b431e commit 1fe859f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/writing-addons/intro-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Some files go in the `app` directory, while others go into the `addon` directory
3838
Let's say that our addon should wrap some content in a button tag. The addon template should look like this:
3939

4040
```handlebars {data-filename=addon/components/my-component-name.hbs}
41-
<button>{{buttonLabel}}</button>
41+
<button>{{@buttonLabel}}</button>
4242
```
4343

4444
<!-- alex disable just -->

0 commit comments

Comments
 (0)