Skip to content

Commit 0b6a992

Browse files
committed
chore(example): In the Paper example, make the checkbox less confusing
1 parent d56d8c3 commit 0b6a992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/web/paper.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ <h2>paper-checkbox</h2>
4242
<p>AngularDart can listen to these events through the on-* syntax</p>
4343

4444
<div>
45-
<paper-checkbox on-change="curValue = (curValue * 1.02)"></paper-checkbox>
45+
<paper-checkbox on-change="curValue = curValue == 5 ? 2 : curValue == 2 ? 10 : 5"></paper-checkbox>
4646
</div>
47-
<p>Every the value changes, the curValue ({{curValue}}) scope variable is multiplied by 1.02</p>
47+
<p>Every the value changes, the curValue ({{curValue}}) scope variable will update</p>
4848
</body>
4949
</html>

0 commit comments

Comments
 (0)