diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2018-03-03 16:41:55 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2018-03-03 16:41:55 +0200 |
| commit | e6774fa740ea303073f77f3f7e50ce3e03e8de58 (patch) | |
| tree | ab04adc8d7ebbf4f3b1453f46ef7738e82457004 /src/components/counter | |
Initial commit
Diffstat (limited to 'src/components/counter')
| -rw-r--r-- | src/components/counter/counter.tag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/counter/counter.tag b/src/components/counter/counter.tag new file mode 100644 index 0000000..d558e8e --- /dev/null +++ b/src/components/counter/counter.tag @@ -0,0 +1,13 @@ +<counter> + <h3>Times clicked: { count }</h3> + <push-button /> + <script> + this.count = 0; + const counter = this; + + clicker.on('click', () => { + counter.count += 1; + counter.update(); + }); + </script> +</counter>
\ No newline at end of file |
