We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b999167 commit 1faf508Copy full SHA for 1faf508
test-app/lib/ember-chat/addon/components/spanish-greeting.hbs
@@ -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>
test-app/lib/ember-chat/addon/components/spanish-greeting.js
@@ -0,0 +1,11 @@
+import Component from '@glimmer/component';
+import { tracked } from '@glimmer/tracking';
+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