Skip to content

Commit 1faf508

Browse files
committed
fix: add missing component
1 parent b999167 commit 1faf508

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<span class="greeting">Hola</span> from {{@name}}!
2+
<button class="clicker" type="button" {{on "click" this.click}}>Clicker</button>
3+
<span class="click-count">{{this.clickCount}}</span>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Component from '@glimmer/component';
2+
import { tracked } from '@glimmer/tracking';
3+
import { action } from '@ember/object';
4+
5+
export default class extends Component {
6+
@tracked clickCount = 0;
7+
8+
@action click() {
9+
this.clickCount++;
10+
}
11+
}

0 commit comments

Comments
 (0)