mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
17 lines
290 B
Plaintext
17 lines
290 B
Plaintext
<script>
|
|
module.exports = {
|
|
onInput: function(input) {
|
|
this.state = {
|
|
counter: input.value
|
|
}
|
|
},
|
|
|
|
increment: function() {
|
|
this.state.counter++;
|
|
}
|
|
}
|
|
</script>
|
|
<div>
|
|
Count: ${state.counter}
|
|
</div>
|