We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abfc840 commit 99923b5Copy full SHA for 99923b5
content/4-component-composition/2-emit-to-parent/emberPolaris/app.gjs
@@ -5,12 +5,12 @@ import AnswerButton from "./answer-button";
5
export default class App extends Component {
6
@tracked isHappy = true;
7
8
- handleYes = () => (this.isHappy = true);
9
- handleNo = () => (this.isHappy = false);
+ handleYes = () => this.isHappy = true;
+ handleNo = () => this.isHappy = false;
10
11
<template>
12
<p>Are you happy?</p>
13
<AnswerButton @onYes={{this.handleYes}} @onNo={{this.handleNo}} />
14
<p style="font-size: 50px;">{{if this.isHappy "😀" "😥"}}</p>
15
</template>
16
-}
+}
0 commit comments